Do not close entry if it failed to save or delete.

This commit is contained in:
Caleb 2017-08-29 10:49:21 -06:00
parent 79c30b9048
commit 74662cb4bd

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