Fix: updated status task_id retrieval

This commit is contained in:
shamoon 2024-08-10 08:11:44 -07:00
parent 4711468598
commit 2f5bb843c6

View File

@ -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()
}