瀏覽代碼

Fix "attempted to use private field on non-instance" in `SearchProvider` (#3201)

Karol Tyka 3 年之前
父節點
當前提交
e6b474635b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/@uppy/provider-views/src/SearchProviderView/SearchProviderView.js

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

@@ -244,7 +244,7 @@ module.exports = class ProviderView {
       pluginIcon: this.plugin.icon,
       i18n: this.plugin.uppy.i18n,
       uppyFiles: this.plugin.uppy.getFiles(),
-      validateRestrictions: this.plugin.uppy.validateRestrictions,
+      validateRestrictions: (...args) => this.plugin.uppy.validateRestrictions(...args),
     }
 
     return (