upload.drop.finished undefined if no error.

This commit is contained in:
Miroslav Šedivý 2021-09-01 19:05:44 +02:00
parent 29b36f5250
commit e78e19c44b
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ export interface NekoEvents {
// drag and drop events
['upload.drop.started']: () => void
['upload.drop.progress']: (progressEvent: ProgressEvent) => void
['upload.drop.finished']: (error: Error | null) => void
['upload.drop.finished']: (error?: Error) => void
// upload dialog events
['upload.dialog.requested']: () => void

View File

@ -376,8 +376,8 @@
},
})
this.events.emit('upload.drop.finished', null)
} catch (err) {
this.events.emit('upload.drop.finished')
} catch (err: any) {
this.events.emit('upload.drop.finished', err)
}
}