mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-06-25 20:21:30 +02:00
Handling empty groups in search function
This commit is contained in:
parent
7569ec3d2c
commit
ecf664d19b
@ -283,12 +283,14 @@ export default {
|
|||||||
|
|
||||||
const searchResultItems = [];
|
const searchResultItems = [];
|
||||||
for (const group of this.config.services) {
|
for (const group of this.config.services) {
|
||||||
|
if (group.items !== null) {
|
||||||
for (const item of group.items) {
|
for (const item of group.items) {
|
||||||
if (this.matchesFilter(item)) {
|
if (this.matchesFilter(item)) {
|
||||||
searchResultItems.push(item);
|
searchResultItems.push(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.services = [
|
this.services = [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user