Handling empty groups in search function

This commit is contained in:
vlorian 2023-08-28 17:53:13 +02:00 committed by Bastien Wirtz
parent 7569ec3d2c
commit ecf664d19b

View File

@ -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 = [
{ {