Parcourir la source

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

Enrico Berti il y a 7 ans
Parent
commit
fe0b8d8a24
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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;