Skip to content

Commit 2b1f62a

Browse files
committed
Bug fix: don't dispatch if the dialog is already closed
1 parent 8ba6cfa commit 2b1f62a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/firefly/js/core/ComponentCntlr.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export function dispatchShowDialog(dialogId,ownerId=undefined) {
3838
}
3939

4040
export function dispatchHideDialog(dialogId) {
41+
if (!isDialogVisible(dialogId)) return;
4142
flux.process({type: HIDE_DIALOG, payload: {dialogId}});
4243
}
4344

0 commit comments

Comments
 (0)