Do not close entry if it failed to save or delete.
This commit is contained in:
parent
79c30b9048
commit
74662cb4bd
@ -297,7 +297,7 @@ export function persistEntry(collection) {
|
||||
kind: 'danger',
|
||||
dismissAfter: 8000,
|
||||
}));
|
||||
return dispatch(entryPersistFail(collection, serializedEntry, error));
|
||||
return Promise.reject(dispatch(entryPersistFail(collection, serializedEntry, error)));
|
||||
});
|
||||
};
|
||||
}
|
||||
@ -319,7 +319,7 @@ export function deleteEntry(collection, slug) {
|
||||
dismissAfter: 8000,
|
||||
}));
|
||||
console.error(error);
|
||||
return dispatch(entryDeleteFail(collection, slug, error));
|
||||
return Promise.reject(dispatch(entryDeleteFail(collection, slug, error)));
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user