浏览代码

provider-views: object spread

Co-Authored-By: Renée Kooi <renee@kooi.me>
Ifedapo .A. Olarewaju 5 年之前
父节点
当前提交
95e0707fcb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/@uppy/provider-views/src/index.js

+ 1 - 1
packages/@uppy/provider-views/src/index.js

@@ -593,7 +593,7 @@ module.exports = class ProviderView {
       )
     }
 
-    const targetViewOptions = Object.assign({}, this.opts, viewOptions)
+    const targetViewOptions = { ...this.opts, ...viewOptions }
     console.log(targetViewOptions)
     const browserProps = Object.assign({}, this.plugin.getPluginState(), {
       username: this.username,