fix: bind handleUpload to current instance

This commit is contained in:
Derrick Hammer 2024-03-18 12:50:44 -04:00
parent 2402d3e076
commit 7779f794e4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export default class UppyFileUpload extends BasePlugin {
} }
install() { install() {
this.uppy.addUploader(this.handleUpload); this.uppy.addUploader(this.handleUpload.bind(this));
} }
private async handleUpload(fileIDs: string[]) { private async handleUpload(fileIDs: string[]) {