فهرست منبع

[editor] Fix browse and download API calls

Enrico Berti 9 سال پیش
والد
کامیت
30b27dbb2e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -2008,7 +2008,7 @@ ${ require.config() }
       ko.applyBindings(viewModel);
       viewModel.init();
 
-      if (viewModel.editorMode && window.location.getParameter('editor') == '' && window.location.getParameter('new') == '') {
+      if (viewModel.editorMode && window.location.getParameter('type') != '' && window.location.getParameter('new') == '') {
         viewModel.selectedNotebook().snippets()[0].statement_raw($.totalStorage('hue.notebook.lastWrittenSnippet'));
         $.totalStorage('hue.notebook.lastWrittenSnippet', '');
       }