Merge pull request #566 from netlify/entry-stop-navigation-on-fail

Do not close entry page if it failed to save or delete.
This commit is contained in:
Shawn Erquhart 2017-08-29 14:51:36 -04:00 committed by GitHub
commit ac8df98407

View File

@ -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)));
});
};
}