aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorvlorian <vlorian@vlorian.de>2023-08-28 17:53:13 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2023-10-21 05:18:47 -0700
commitecf664d19b2a46c9d89a9a9c1128e22b7228607a (patch)
treed8d95e24d8cf9ca5e8e1acd79366e379dd0da98f /src
parent7569ec3d2cef86c8becee70b02d661f8b78bd3db (diff)
downloadhomer-ecf664d19b2a46c9d89a9a9c1128e22b7228607a.tar.gz
homer-ecf664d19b2a46c9d89a9a9c1128e22b7228607a.tar.zst
homer-ecf664d19b2a46c9d89a9a9c1128e22b7228607a.zip
Handling empty groups in search function
Diffstat (limited to 'src')
-rw-r--r--src/App.vue8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/App.vue b/src/App.vue
index 446db31..a329775 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -283,9 +283,11 @@ export default {
283 283
284 const searchResultItems = []; 284 const searchResultItems = [];
285 for (const group of this.config.services) { 285 for (const group of this.config.services) {
286 for (const item of group.items) { 286 if (group.items !== null) {
287 if (this.matchesFilter(item)) { 287 for (const item of group.items) {
288 searchResultItems.push(item); 288 if (this.matchesFilter(item)) {
289 searchResultItems.push(item);
290 }
289 } 291 }
290 } 292 }
291 } 293 }