mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 07:33:36 +08:00
ModalManager: Fix issue when app.current is not defined (#1530)
This commit is contained in:
parent
7d5c4ad100
commit
d748864d26
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user