From 74662cb4bdfb4d8cd22a5bd867b8fa95355c60ad Mon Sep 17 00:00:00 2001 From: Caleb Date: Tue, 29 Aug 2017 10:49:21 -0600 Subject: [PATCH] Do not close entry if it failed to save or delete. --- src/actions/entries.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/entries.js b/src/actions/entries.js index 26235db2..146d14c7 100644 --- a/src/actions/entries.js +++ b/src/actions/entries.js @@ -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))); }); }; }