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 = [];
|
||||
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