Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[fix] check for allBins (#2876)

Igor Dykhta34444fa549ba
diff --git a/src/components/src/side-panel/layer-panel/color-breaks-panel.tsx b/src/components/src/side-panel/layer-panel/color-breaks-panel.tsx
index dfee30702..54cc2ce8e 100644
--- a/src/components/src/side-panel/layer-panel/color-breaks-panel.tsx
+++ b/src/components/src/side-panel/layer-panel/color-breaks-panel.tsx
@@ -194,7 +194,7 @@ function ColorBreaksPanelFactory(
onApply={onApply}
onCancel={onCilckCancel}
/>
- ) : currentBreaks ? (
+ ) : currentBreaks && allBins.length > 1 ? (
<ColorBreaksDisplay
currentBreaks={currentBreaks}
onEdit={isCustomBreaks ? onClickEditCustomBreaks : null}