瀏覽代碼

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

Artur Paikin 5 年之前
父節點
當前提交
f4497838da
共有 1 個文件被更改,包括 3 次插入1 次删除
  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'