mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-03-12 22:43:05 +01:00
Handling empty groups in search function
This commit is contained in:
parent
7569ec3d2c
commit
ecf664d19b
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user