From 7779f794e4654a7122dbe3a4bb531248f9a54dbf Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 18 Mar 2024 12:50:44 -0400 Subject: [PATCH] fix: bind handleUpload to current instance --- app/components/lib/uppy-file-upload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/lib/uppy-file-upload.ts b/app/components/lib/uppy-file-upload.ts index 860cbd6..a6224ec 100644 --- a/app/components/lib/uppy-file-upload.ts +++ b/app/components/lib/uppy-file-upload.ts @@ -19,7 +19,7 @@ export default class UppyFileUpload extends BasePlugin { } install() { - this.uppy.addUploader(this.handleUpload); + this.uppy.addUploader(this.handleUpload.bind(this)); } private async handleUpload(fileIDs: string[]) {