소스 검색

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) {