浏览代码

HUE-7921 [editor] Allow opening of an editor after landing on a non-existing/non-viewable document

Enrico Berti 7 年之前
父节点
当前提交
fe0b8d8a24
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      desktop/core/src/desktop/templates/hue.mako

+ 4 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -915,6 +915,10 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
             }
           }
 
+          if (self.currentApp() == 'editor' && self.embeddable_cache['editor'] && !$('#editorComponents').length) {
+            self.embeddable_cache['editor'] = undefined;
+          }
+
           self.currentApp(app);
           if (!app.startsWith('security')) {
             self.lastContext = null;