Unverified Commit 93b04a59 authored by Benjamin Wheeler's avatar Benjamin Wheeler Committed by GitHub

Merge pull request #2393 from benjiwheeler/update-project-error

project page will no longer vanish when project metadata update fails on the backend
parents 824764bc dab1be81
......@@ -754,9 +754,9 @@ module.exports.updateProject = (id, jsonData, username, token) => (dispatch => {
dispatch(module.exports.setError('No project info'));
return;
}
if (res.statusCode === 500) { // InternalServer
if (res.statusCode >= 400) { // API responding with error
dispatch(module.exports.setFetchStatus('project', module.exports.Status.ERROR));
dispatch(module.exports.setError('API Internal Server Error'));
dispatch(module.exports.setError('API Error Response'));
return;
}
dispatch(module.exports.setFetchStatus('project', module.exports.Status.FETCHED));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment