From 96bcdffdca3b69a304488aee064b5bc3aa50e6a4 Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Fri, 5 Dec 2025 18:45:19 +0530 Subject: [PATCH] added optional chain for n=menu --- src/components/Layout/Sidebar.jsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/Layout/Sidebar.jsx b/src/components/Layout/Sidebar.jsx index 4fa7cd9f..0adf0295 100644 --- a/src/components/Layout/Sidebar.jsx +++ b/src/components/Layout/Sidebar.jsx @@ -25,9 +25,7 @@ const Sidebar = () => { /> */} - + @@ -37,8 +35,7 @@ const Sidebar = () => { - - + @@ -61,7 +58,7 @@ const Sidebar = () => { )} {data && - data?.data.map((section) => ( + data?.data?.map((section) => (