Browse Source

HUE-3479 [editor] Clear should also clear the result

Romain Rigaux 9 năm trước cách đây
mục cha
commit
31cc155

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

@@ -647,8 +647,10 @@
     };
 
     self.clear = function () {
-      self.ace().setValue('', 1);
       logGA('clear');
+      self.ace().setValue('', 1);
+      self.result.clear();
+      notebook.showHistory(true);
     };
 
     self.explain = function () {