瀏覽代碼

Update index.js

fixes #1447
Artur Paikin 6 年之前
父節點
當前提交
94225662d5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) => {