From 88053d1286d5e2fcdcf521591e6883496dcc2fc0 Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Fri, 5 Dec 2025 18:55:23 +0530 Subject: [PATCH] added optional chain for handle error --- src/components/Layout/Sidebar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Layout/Sidebar.jsx b/src/components/Layout/Sidebar.jsx index c169859a..2533abd4 100644 --- a/src/components/Layout/Sidebar.jsx +++ b/src/components/Layout/Sidebar.jsx @@ -69,7 +69,7 @@ const Sidebar = () => { )} {data && - data?.data.map((section) => ( + data?.data?.map((section) => (