diff --git a/framework/core/js/src/common/components/ModalManager.js b/framework/core/js/src/common/components/ModalManager.js index 788eb93d4..0453fa9d4 100644 --- a/framework/core/js/src/common/components/ModalManager.js +++ b/framework/core/js/src/common/components/ModalManager.js @@ -49,7 +49,7 @@ export default class ModalManager extends Component { this.showing = true; this.component = component; - app.current.retain = true; + if (app.current) app.current.retain = true; m.redraw(true);