Publish: fix Resume button not appearing after 'conflict' (#543)

## Issue
Apparently, a user is experiencing 423 locked errors from the server, which should not happen given the locking mechanism plus the user wasn't trying to do concurrent uploads.

## Fix
Anyway, fix the Resume button so that at least they can try to resume.
This commit is contained in:
infinite-persistence 2021-12-20 17:25:15 -08:00 committed by GitHub
parent dcf0e903ba
commit 9a0fde3f33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ export const publishReducer = handleActions(
} }
} else if (status) { } else if (status) {
currentUploads[key].status = status; currentUploads[key].status = status;
if (status === 'error') { if (status === 'error' || status === 'conflict') {
delete currentUploads[key].uploader; delete currentUploads[key].uploader;
} }
} }