mirror of https://github.com/bastienwirtz/homer
Handling empty groups in search function
parent
7569ec3d2c
commit
ecf664d19b
|
@ -283,9 +283,11 @@ export default {
|
||||||
|
|
||||||
const searchResultItems = [];
|
const searchResultItems = [];
|
||||||
for (const group of this.config.services) {
|
for (const group of this.config.services) {
|
||||||
for (const item of group.items) {
|
if (group.items !== null) {
|
||||||
if (this.matchesFilter(item)) {
|
for (const item of group.items) {
|
||||||
searchResultItems.push(item);
|
if (this.matchesFilter(item)) {
|
||||||
|
searchResultItems.push(item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue