Skip to content

Commit

Permalink
added optional chaining.
Browse files Browse the repository at this point in the history
  • Loading branch information
GouravNG committed Oct 10, 2024
1 parent c4753d2 commit dbc1808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/dropdown.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const DropDown: React.FC = async () => {
return (
<>
<div className='flex gap-3 p-2 '>
{dropDonwData.map((MC, index) => {
{dropDonwData?.map((MC, index) => {
return (
<div className='relative flex flex-col p-2 group z-10 ' key={MC.parent_id}>
<h6 className={`font-serif underLineDecoration flex items-center justify-center`}>
Expand Down

0 comments on commit dbc1808

Please sign in to comment.