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

HUE-5151 [editor] No result in Query History search in editor toggles to Saved Query tab in FF

Enrico Berti 9 жил өмнө
parent
commit
fbbb534

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

@@ -1390,7 +1390,7 @@ var EditorViewModel = (function() {
     }
     self.history = ko.observableArray(vm.selectedNotebook() ? vm.selectedNotebook().history() : []);
     self.history.subscribe(function(val) {
-      if (self.id() == null && val.length == 0) {
+      if (self.id() == null && val.length == 0 && self.historyFilter() === '') {
         self.snippets()[0].currentQueryTab('savedQueries');
       }
     });