re-reject on save error
This commit is contained in:
@@ -636,6 +636,8 @@ class DetailRecordView extends BaseRecordView {
|
||||
if (modeBeforeSave === this.MODE_EDIT && reason === 'error') {
|
||||
this.setEditMode();
|
||||
}
|
||||
|
||||
return Promise.reject(reason);
|
||||
});
|
||||
|
||||
if (!this.lastSaveCancelReason || this.lastSaveCancelReason === 'notModified') {
|
||||
|
||||
@@ -100,7 +100,7 @@ class EditRecordView extends DetailRecordView {
|
||||
|
||||
this.exit(isNew ? 'create' : 'save');
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(reason => Promise.reject(reason));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user