Selaa lähdekoodia

HUE-4312 [editor] Load query history, loses editor type when clicking on new query

Romain Rigaux 9 vuotta sitten
vanhempi
commit
f73dd6c

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

@@ -1681,7 +1681,7 @@
         if (self.isHistory()) {
           self.id(null);
           self.uuid(UUID());
-          hueUtils.changeURL('/notebook/editor');
+          hueUtils.changeURL('/notebook/editor?type=' + vm.editorType());
         }
       }).fail(function (xhr) {
         $(document).trigger("error", xhr.responseText);
@@ -2077,7 +2077,7 @@
           if (window.location.getParameter('type')) {
             hueUtils.changeURL('/notebook/editor?type=' + window.location.getParameter('type'));
           } else {
-            hueUtils.changeURL('/notebook/editor');
+            hueUtils.changeURL('/notebook/editor?type=' + self.editorType());
           }
         } else {
           hueUtils.changeURL('/notebook/notebook');