Update src/pages/index.jsx

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Adi Vakninandshamoon authored and GitHub committed 2025-01-05 17:53:38 +02:00
1 parent f9ac4dd0cc
commit 6a16583aa8
1 file changed
+1 -2
+1 -2
View File
@@ -168,11 +168,10 @@ const headerStyles = {
function getAllServices(services) {
function get(sg) {
let nestedServices = [];
let nestedServices = [...sg.services];
if (sg.groups.length > 0) {
nestedServices = [...nestedServices, ...sg.groups.map(get).flat()];
}
nestedServices = [...nestedServices, ...sg.services.flat()];
return nestedServices;
}