Эх сурвалжийг харах

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

Romain Rigaux 7 жил өмнө
parent
commit
6b91a41

+ 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;