Skip to content

Commit

Permalink
Handling empty groups in search function
Browse files Browse the repository at this point in the history
  • Loading branch information
vlorian-de authored and bastienwirtz committed Oct 21, 2023
1 parent 7569ec3 commit ecf664d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit ecf664d

Please sign in to comment.