From 921a700bec98bea0b8b087402ac4c6ca4ba7fa2e Mon Sep 17 00:00:00 2001 From: Marius Date: Wed, 9 Oct 2024 16:26:30 +0200 Subject: [PATCH] tus: Avoid duplicate `upload-error` event Fixes https://github.com/transloadit/uppy/issues/5473. --- packages/@uppy/tus/src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/@uppy/tus/src/index.ts b/packages/@uppy/tus/src/index.ts index 513cfa60e4..bdde8644e3 100644 --- a/packages/@uppy/tus/src/index.ts +++ b/packages/@uppy/tus/src/index.ts @@ -289,7 +289,6 @@ export default class Tus extends BasePlugin< this.resetUploaderReferences(file.id) queuedRequest?.abort() - this.uppy.emit('upload-error', file, err) if (typeof opts.onError === 'function') { opts.onError(err) }