Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[fix] Add guard for null legend label (#2344)
Igor Dykhtacf9cf21a1f60
diff --git a/src/components/src/common/color-legend.tsx b/src/components/src/common/color-legend.tsxindex 4b183a447..fdf201804 100644--- a/src/components/src/common/color-legend.tsx+++ b/src/components/src/common/color-legend.tsx@@ -186,7 +186,7 @@ export const LegendRow = ({label = '', displayLabel, color, idx}) => (<g transform={`translate(0, ${idx * (ROW_H + GAP)})`}><rect width={RECT_W} height={ROW_H} style={{fill: color}} /><text x={RECT_W + 8} y={ROW_H - 1}>- {displayLabel ? label.toString() : ''}+ {displayLabel ? label?.toString() ?? 'N/A' : ''}</text></g>);