From 0ab5ce64b61be14cfbddb88a767cfde79a3424f1 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 19 Jan 2022 23:49:16 +0800 Subject: [PATCH] fix: Cannot read properties of undefined (reading 'toLowerCase') in App Store Signed-off-by: Wing-Kam Wong --- packages/nc-gui/components/project/appStore.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/project/appStore.vue b/packages/nc-gui/components/project/appStore.vue index 2748824824..e79d0a814f 100644 --- a/packages/nc-gui/components/project/appStore.vue +++ b/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))) ) }