فهرست منبع

revert unrelated changes

Renée Kooi 6 سال پیش
والد
کامیت
12f64cd136
1فایلهای تغییر یافته به همراه4 افزوده شده و 6 حذف شده
  1. 4 6
      packages/@uppy/core/src/index.js

+ 4 - 6
packages/@uppy/core/src/index.js

@@ -1119,15 +1119,13 @@ class Uppy {
 
       lastStep = lastStep.then(() => {
         const { currentUploads } = this.getState()
-        const currentUpload = {
-          ...currentUploads[uploadID],
+        const currentUpload = Object.assign({}, currentUploads[uploadID], {
           step: step
-        }
+        })
         this.setState({
-          currentUploads: {
-            ...currentUploads,
+          currentUploads: Object.assign({}, currentUploads, {
             [uploadID]: currentUpload
-          }
+          })
         })
 
         // TODO give this the `currentUpload` object as its only parameter maybe?