Przeglądaj źródła

Only _startIfAutoProceed if some files were actually added (#2146)

Artur Paikin 5 lat temu
rodzic
commit
f4497838da
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      packages/@uppy/core/src/index.js

+ 3 - 1
packages/@uppy/core/src/index.js

@@ -677,7 +677,9 @@ class Uppy {
       })
     }
 
-    this._startIfAutoProceed()
+    if (newFiles.length > 0) {
+      this._startIfAutoProceed()
+    }
 
     if (errors.length > 0) {
       let message = 'Multiple errors occurred while adding files:\n'