From ecf664d19b2a46c9d89a9a9c1128e22b7228607a Mon Sep 17 00:00:00 2001 From: vlorian Date: Mon, 28 Aug 2023 17:53:13 +0200 Subject: Handling empty groups in search function --- src/App.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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 { const searchResultItems = []; for (const group of this.config.services) { - for (const item of group.items) { - if (this.matchesFilter(item)) { - searchResultItems.push(item); + if (group.items !== null) { + for (const item of group.items) { + if (this.matchesFilter(item)) { + searchResultItems.push(item); + } } } } -- cgit v1.2.3