From 7b8bd3cc871b0e601bee6e88fd2668ee7c3fbc65 Mon Sep 17 00:00:00 2001 From: satellitestudiodesign Date: Fri, 2 Aug 2024 11:16:06 +0200 Subject: [PATCH] show legend placeholder until it also contains values --- apps/fishing-map/features/workspace/common/MapLegend.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fishing-map/features/workspace/common/MapLegend.tsx b/apps/fishing-map/features/workspace/common/MapLegend.tsx index 77d9aec599..8c0a1c0ccc 100644 --- a/apps/fishing-map/features/workspace/common/MapLegend.tsx +++ b/apps/fishing-map/features/workspace/common/MapLegend.tsx @@ -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 ? : null }