Skip to content

Commit 0424951

Browse files
committed
#519 fix: Issue #616
1 parent 8c16c4c commit 0424951

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

webapp/components/topbar/dialogs/ActionDialog.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,13 @@ class ActionDialog extends React.Component {
112112
}
113113
}
114114

115+
const shouldDisplay = Boolean(!this.state.hide || this.props.openErrorDialogBox);
115116
return (
117+
shouldDisplay ?(
116118
<Dialog
117119
fullWidth
118120
maxWidth={this.props.openErrorDialogBox ? 'md' : 'sm'}
119-
open={Boolean(!this.state.hide || this.props.openErrorDialogBox)}
121+
open={shouldDisplay}
120122
onClose={() => this.cancelDialog()}
121123
className={classes.root}
122124
>
@@ -128,6 +130,7 @@ class ActionDialog extends React.Component {
128130
{action}
129131
</DialogActions>
130132
</Dialog>
133+
): <></>
131134
);
132135
}
133136
}

0 commit comments

Comments
 (0)