We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c16c4c commit 0424951Copy full SHA for 0424951
1 file changed
webapp/components/topbar/dialogs/ActionDialog.js
@@ -112,11 +112,13 @@ class ActionDialog extends React.Component {
112
}
113
114
115
+ const shouldDisplay = Boolean(!this.state.hide || this.props.openErrorDialogBox);
116
return (
117
+ shouldDisplay ?(
118
<Dialog
119
fullWidth
120
maxWidth={this.props.openErrorDialogBox ? 'md' : 'sm'}
- open={Boolean(!this.state.hide || this.props.openErrorDialogBox)}
121
+ open={shouldDisplay}
122
onClose={() => this.cancelDialog()}
123
className={classes.root}
124
>
@@ -128,6 +130,7 @@ class ActionDialog extends React.Component {
128
130
{action}
129
131
</DialogActions>
132
</Dialog>
133
+ ): <></>
134
);
135
136
0 commit comments