소스 검색

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,