fix(web): show warning if upload completed with errors (#3634)

This commit is contained in:
Russell Tan 2023-08-10 06:38:29 -07:00 committed by GitHub
parent a815592954
commit a8b01dc21a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 2 deletions

View file

@ -173,6 +173,8 @@ async function fileUploader(
}
function handleUploadError(asset: File, respBody = '{}', extraMessage?: string) {
uploadAssetsStore.errorCounter.update((count) => count + 1);
try {
const res = JSON.parse(respBody);