Skip to content

Commit

Permalink
tus: Avoid duplicate upload-error event (#5485)
Browse files Browse the repository at this point in the history
Fixes #5473.
  • Loading branch information
Acconut authored Oct 15, 2024
1 parent 7322413 commit 6b2fe32
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/@uppy/tus/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ export default class Tus<M extends Meta, B extends Body> extends BasePlugin<
this.resetUploaderReferences(file.id)
queuedRequest?.abort()

this.uppy.emit('upload-error', file, err)
if (typeof opts.onError === 'function') {
opts.onError(err)
}
Expand Down

0 comments on commit 6b2fe32

Please sign in to comment.