Parcourir la source

provider-views: object spread

Co-Authored-By: Renée Kooi <renee@kooi.me>
Ifedapo .A. Olarewaju il y a 5 ans
Parent
commit
95e0707fcb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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,