From 5fe846de1d9aa498ba9a46544b09d826c6feae22 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 10 Aug 2024 08:32:06 -0700 Subject: [PATCH] Fix: initial upload message not being dismissed (#7438) --- src-ui/src/app/services/upload-documents.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/src/app/services/upload-documents.service.ts b/src-ui/src/app/services/upload-documents.service.ts index 6a086cd99..8ddbb1813 100644 --- a/src-ui/src/app/services/upload-documents.service.ts +++ b/src-ui/src/app/services/upload-documents.service.ts @@ -53,7 +53,7 @@ export class UploadDocumentsService { ) status.message = $localize`Uploading...` } else if (event.type == HttpEventType.Response) { - status.taskId = event.body['task_id'] + status.taskId = event.body['task_id'] ?? event.body.toString() status.message = $localize`Upload complete, waiting...` this.uploadSubscriptions[file.name]?.complete() }