From 5f5d8a97126618cc0fc7f4b67d1e73fb12835684 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Mon, 20 Jul 2020 14:59:27 +0200 Subject: [PATCH] Do not add when cancelled --- .../resumable-file-upload/resumable-file-upload.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/src/fm/components/resumable-file-upload/resumable-file-upload.service.ts b/projects/common/src/fm/components/resumable-file-upload/resumable-file-upload.service.ts index 30f3d3d..e515354 100644 --- a/projects/common/src/fm/components/resumable-file-upload/resumable-file-upload.service.ts +++ b/projects/common/src/fm/components/resumable-file-upload/resumable-file-upload.service.ts @@ -53,7 +53,7 @@ export class ResumableFileUploadService implements OnDestroy{ handleState(state:UploadState) { var file =this.files.find((f) => f.identifier == state.uploadId ) - if(!file) { + if(state.status != "cancelled" && !file) { this.files.push(new File(state)); this.isClosed=false; }