Parcourir la source

HUE-3634 [editor] Reset editor URL when clearing history not on a saved query

Romain Rigaux il y a 9 ans
Parent
commit
7de680c

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

@@ -1324,6 +1324,7 @@
         if (self.isHistory()) {
           self.id(null);
           self.uuid(UUID());
+          hueUtils.changeURL('/notebook/editor');
         }
       }).fail(function (xhr) {
         $(document).trigger("error", xhr.responseText);