Преглед изворни кода

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

Romain Rigaux пре 9 година
родитељ
комит
7de680c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

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