瀏覽代碼

HUE-8104 [editor] FIX variable selection in presentation mode

jdesjean 7 年之前
父節點
當前提交
c123ee0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 1 - 0
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -2953,6 +2953,7 @@ var EditorViewModel = (function() {
               }
             });
             _snippet = new Snippet(self, _notebook, {type: _notebook.initialType, statement_raw: _statement.join('\n'), result: {}, name: _title.join('\n'), variables: ko.mapping.toJS(_variables)}, skipSession=true);
+            _snippet.variables = _notebook.snippets()[0].variables;
             _snippet.init();
             _notebook.presentationSnippets()[sql_statement.hashCode()] = _snippet;
           }