Parcourir la source

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

Karol Tyka il y a 3 ans
Parent
commit
e6b474635b

+ 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 (