Procházet zdrojové kódy

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

Enrico Berti před 7 roky
rodič
revize
fe0b8d8a24
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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;