pull/4571/head v0.10.8
shamoon 2 weeks ago
parent 86a13817df
commit 2ee5fd123b

@ -167,15 +167,15 @@ const headerStyles = {
}; };
function getAllServices(services) { function getAllServices(services) {
function get(sg) { function getServices(group) {
let nestedServices = [...sg.services]; let nestedServices = [...group.services];
if (sg.groups.length > 0) { if (group.groups.length > 0) {
nestedServices = [...nestedServices, ...sg.groups.map(get).flat()]; nestedServices = [...nestedServices, ...group.groups.map(getServices).flat()];
} }
return nestedServices; return nestedServices;
} }
return [...services.map(get).flat()]; return [...services.map(getServices).flat()];
} }
function Home({ initialSettings }) { function Home({ initialSettings }) {

Loading…
Cancel
Save