Fix error
This commit is contained in:
parent
394bff34e5
commit
240831d6e5
@ -47,7 +47,9 @@ class StreamUploadManager<TCacheShape> {
|
|||||||
this.isUploading = true;
|
this.isUploading = true;
|
||||||
const task = this.uploadQueue.shift();
|
const task = this.uploadQueue.shift();
|
||||||
try {
|
try {
|
||||||
if (task) await task();
|
if (task) {
|
||||||
|
await task();
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error processing upload task", error);
|
console.error("Error processing upload task", error);
|
||||||
} finally {
|
} finally {
|
||||||
|
Loading…
Reference in New Issue
Block a user