Skip to content

Commit

Permalink
fix duplicate file in queue
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-morchipont committed Nov 23, 2018
1 parent b423316 commit 1e8d758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-uploader/src/lib/ngx-uploader.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class NgUploaderService {
}
break;
case 'uploadAll':
const files = this.queue.filter(file => file.progress.status === UploadStatus.Queue);
const files = this.queue.filter(file => file.progress.status === UploadStatus.Queue && !this.subs.find((f) => f.id === file.id));
files.forEach(file => this.uploadScheduler.next({ file: file, event: event }));
break;
case 'cancel':
Expand Down

0 comments on commit 1e8d758

Please sign in to comment.