Ver Fonte

Update index.js

fixes #1447
Artur Paikin há 6 anos atrás
pai
commit
94225662d5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/@uppy/provider-views/src/index.js

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

@@ -218,7 +218,7 @@ module.exports = class ProviderView {
 
   filterItems (items) {
     const state = this.plugin.getPluginState()
-    if (state.filterInput === '') {
+    if (!state.filterInput || state.filterInput === '') {
       return items
     }
     return items.filter((folder) => {