Bläddra i källkod

validateRestrictions was failing due to being unbound, fixed with arrow function

Artur Paikin 3 år sedan
förälder
incheckning
1c7ac56d84
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      packages/@uppy/provider-views/src/ProviderView/ProviderView.js

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

@@ -556,7 +556,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 (