From 6a16583aa8f5ccde61649ea745b5241df38f23be Mon Sep 17 00:00:00 2001 From: Adi Vaknin <6841988+DeepSpace2@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:53:38 +0200 Subject: [PATCH] Update src/pages/index.jsx Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com> --- src/pages/index.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 48e04646..3b4506ef 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -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; }