Explorar el Código

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

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
Merlijn Vos hace 8 meses
padre
commit
a50c18f5e6
Se han modificado 1 ficheros con 1 adiciones y 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