Преглед изворни кода

HUE-6035 [editor] Fix editor js error from huePubSub

Johan Ahlen пре 8 година
родитељ
комит
33c25ea
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -3508,7 +3508,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
       });
 
       $(document).on("renderDataError", function (e, options) {
-        huePubSub.subscribe('editor.snippet.result.normal', options.snippet);
+        huePubSub.publish('editor.snippet.result.normal', options.snippet);
       });
 
       $(document).on("progress", function (e, options) {