From ec9684b826bba5f796aa261f410a298db67c3075 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Tue, 21 Jul 2020 19:11:30 +0200 Subject: [PATCH] Set upload flag only when file is found --- .../resumable-file-upload/resumable-file-upload.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 6c3ca1c..d3f1dcb 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 @@ -58,9 +58,9 @@ export class ResumableFileUploadService implements OnDestroy{ this.isClosed=false; } switch(state.status) { - case "uploading": { - this.isUploading = true; + case "uploading": { if(file) { + this.isUploading = true; file.progress = (state.progress?state.progress:0); } };break;