Skip to content

Commit

Permalink
@uppy/transloadit: fix check if all files have been removed (#5419)
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
  • Loading branch information
Murderlon and aduh95 committed Aug 21, 2024
1 parent f9670c3 commit 7af98b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@uppy/transloadit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ export default class Transloadit<
const files = this.uppy
.getFiles()
.filter(({ id }) => fileIDs.includes(id))
if (files.length === 0) {

if (files.length === 0 && fileIDs.length !== 0) {
// All files have been removed, cancelling.
await this.client.cancelAssembly(newAssembly)
return null
Expand Down

0 comments on commit 7af98b1

Please sign in to comment.