소스 검색

HUE-8037 [editor] Restore cursor position for query history only

Romain Rigaux 7 년 전
부모
커밋
6b91a41
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

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

@@ -298,7 +298,7 @@ var EditorViewModel = (function() {
     });
 
     // Ace stuff
-    self.aceCursorPosition = ko.observable(snippet.aceCursorPosition);
+    self.aceCursorPosition = ko.observable(notebook.isHistory() ? snippet.aceCursorPosition : null);
 
     var aceEditor = null;