Skip to content

Commit

Permalink
show legend placeholder until it also contains values
Browse files Browse the repository at this point in the history
  • Loading branch information
satellitestudiodesign committed Aug 2, 2024
1 parent dfb68fa commit 7b8bd3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/fishing-map/features/workspace/common/MapLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const MapLegendWrapper = ({
if (isBivariate && legendSublayerIndex !== 0) {
return null
}
if (legendSublayerIndex < 0 || !deckLegend.ranges || !deckLegend.domain) {
if (legendSublayerIndex < 0 || !deckLegend.ranges?.length || !deckLegend.domain?.length) {
return showPlaceholder ? <MapLegendPlaceholder /> : null
}

Expand Down

0 comments on commit 7b8bd3c

Please sign in to comment.