Browse Source

fix: Cannot read properties of undefined (reading 'toLowerCase') in App Store

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/970/head
Wing-Kam Wong 3 years ago
parent
commit
0ab5ce64b6
  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() return this.apps.reduce((arr, app) => arr.concat(app.tags || []), []).filter((f, i, arr) => i === arr.indexOf(f)).sort()
}, },
filteredApps() { 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))) (!this.selectedTags.length || this.selectedTags.some(t => app.tags && app.tags.includes(t)))
) )
} }

Loading…
Cancel
Save