瀏覽代碼

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

Romain Rigaux 9 年之前
父節點
當前提交
7de680c673
共有 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);