Browse Source

Merge pull request #970 from wingkwong/fix/plugin-search

fix: Cannot read properties of undefined (reading 'toLowerCase') in App Store
pull/973/head
WK WONG 3 years ago committed by GitHub
parent
commit
fae1e7bf63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/components/project/appStore.vue

2
packages/nc-gui/components/project/appStore.vue

@ -200,7 +200,7 @@ export default {
return this.apps.reduce((arr, app) => arr.concat(app.tags || []), []).filter((f, i, arr) => i === arr.indexOf(f)).sort()
},
filteredApps() {
return this.apps.filter(app => (!this.query.trim() || app.name.toLowerCase().includes(this.query.trim().toLowerCase())) &&
return this.apps.filter(app => (!this.query.trim() || app.title.toLowerCase().includes(this.query.trim().toLowerCase())) &&
(!this.selectedTags.length || this.selectedTags.some(t => app.tags && app.tags.includes(t)))
)
}

Loading…
Cancel
Save