fix email modal collapse confirmation leave out

This commit is contained in:
Yuri Kuznetsov
2023-12-06 14:04:58 +02:00
parent 0be375f5a6
commit 49defa44f4
+2 -3
View File
@@ -292,11 +292,10 @@ class ComposeEmailModalView extends EditModalView {
beforeCollapse() {
if (this.wasModified) {
this.actionSaveDraft({skipNotModifiedWarning: true});
this.actionSaveDraft({skipNotModifiedWarning: true})
.then(() => this.getRecordView().setConfirmLeaveOut(false));
}
this.getRecordView().setConfirmLeaveOut(false);
return super.beforeCollapse();
}
}