From e2818417dec66dab1d435b8673c8d9bdeeb0ba17 Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Fri, 22 Nov 2024 17:02:00 -0500 Subject: [PATCH] fix manager --- src/exports/attachment-manager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/exports/attachment-manager.ts b/src/exports/attachment-manager.ts index 9900f3ce..cdebf52d 100644 --- a/src/exports/attachment-manager.ts +++ b/src/exports/attachment-manager.ts @@ -133,9 +133,10 @@ export class AttachmentManager implements AttachmentManagerAttributes { } handleSuccess() { + this.setUploadProgress(100); const upload = this.directUpload; + if (upload) { - this.setUploadProgress(100); upload.element.dispatchEvent(new AttachmentUploadSucceedEvent(upload)); upload.element.dispatchEvent(new AttachmentUploadCompleteEvent(upload)); }