|
|
@ -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 }) {
|
|
|
|