Skip to content

Commit

Permalink
[5.x] Fix errors in upload queue (#10944)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Oct 11, 2024
1 parent c7e140e commit ef4f7d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/js/components/assets/Uploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,11 @@ export default {
},
processUploadQueue() {
if (this.uploads.length === 0) return;
const uploads = this.uploads.filter(u => !u.errorMessage);
const upload = this.uploads[0];
if (uploads.length === 0) return;
const upload = uploads[0];
const id = upload.id;
upload.instance.upload().then(response => {
Expand Down

0 comments on commit ef4f7d7

Please sign in to comment.