Skip to content

Commit

Permalink
Fix search functionality in AppPanel.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghengxin committed Jan 29, 2024
1 parent 31ce55e commit 7d257ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/components/Apps/AppPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ export default {
filteredPageList() {
if (Object.keys(this.pageList).length === 0) return [];
return this.pageList.filter(app => {
const keywords = (app.title + app.tagline).toLocaleLowerCase();
const keywords = (app.title + app.tagline)?.toLocaleLowerCase() ?? "";
for (const term of this.searchKey.split(' ')) {
if (keywords.indexOf(term.toLocaleLowerCase()) !== -1) {
return true;
Expand Down

0 comments on commit 7d257ea

Please sign in to comment.