Răsfoiți Sursa

HUE-7096 [editor] Still add a new snippet at execution in notebook mode

Romain Rigaux 8 ani în urmă
părinte
comite
c6b7607

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

@@ -1569,6 +1569,8 @@ var EditorViewModel = (function() {
         setTimeout(function () {
           self.fetchResultData(rows, false);
         }, 500);
+      } else if (! vm.editorMode() && ! vm.isPresentationMode() && notebook.snippets()[notebook.snippets().length - 1] == self) {
+        notebook.newSnippet();
       }
     };