added optional chain for handle error

This commit is contained in:
pramod.mahajan 2025-12-05 18:55:23 +05:30
parent 23a7a56e32
commit 88053d1286

View File

@ -69,7 +69,7 @@ const Sidebar = () => {
</>
)}
{data &&
data?.data.map((section) => (
data?.data?.map((section) => (
<React.Fragment
key={section.id || section.header || section.items[0]?.id}
>