Skip to content

Commit

Permalink
fix: prevent crash when searching for multiple projects
Browse files Browse the repository at this point in the history
Closes #221
  • Loading branch information
stdavis committed Feb 9, 2024
1 parent de8bf29 commit ad00ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ProjectInformation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function ProjectInformation({ graphics, showLoader, highlightGrap
)}
{graphics.map((graphic, index) => (
<Details
key={`${graphic.layer.id}_${graphic.attributes.OBJECTID}_${index}`}
key={`${graphic?.layer.id}_${graphic.attributes.OBJECTID}_${index}`}
graphic={graphic}
highlightGraphic={highlightGraphic}
onlyOne={graphics.length === 1}
Expand Down

0 comments on commit ad00ccb

Please sign in to comment.