Prettier
parent
059f858b9c
commit
ec3721fbb7
|
@ -82,8 +82,7 @@ class DashboardPage extends Component {
|
||||||
|
|
||||||
handleCloseTemplateManager(isEdited) {
|
handleCloseTemplateManager(isEdited) {
|
||||||
if (
|
if (
|
||||||
!isEdited ||
|
!isEdited || (isEdited && confirm('Do you want to close without saving?')) // eslint-disable-line no-alert
|
||||||
(isEdited && confirm('Do you want to close without saving?')) // eslint-disable-line no-alert
|
|
||||||
) {
|
) {
|
||||||
this.setState({isTemplating: false})
|
this.setState({isTemplating: false})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue