Skip to content

Commit

Permalink
fix data fetched condition
Browse files Browse the repository at this point in the history
  • Loading branch information
anamontiaga committed Dec 26, 2023
1 parent 8856ddd commit b1977ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/datasets/protection/map-legend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const ProtectionMapLegend = () => {

return (
<div className="flex w-full flex-col justify-between space-y-2 font-sans text-black/60">
{data.legend?.map(({ color, label, labelFormatted }) => {
{data?.legend?.map(({ color, label, labelFormatted }) => {
return (
<div key={label} className="flex items-start">
<div
Expand Down

0 comments on commit b1977ba

Please sign in to comment.