Explorar o código

@uppy/transloadit: fix check if all files have been removed (#5419)

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
Merlijn Vos hai 8 meses
pai
achega
a50c18f5e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/@uppy/transloadit/src/index.ts

+ 1 - 1
packages/@uppy/transloadit/src/index.ts

@@ -416,7 +416,7 @@ export default class Transloadit<
         .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