diff --git a/public/app/plugins/panel/geomap/layers/data/MarkersLegend.tsx b/public/app/plugins/panel/geomap/layers/data/MarkersLegend.tsx index 0cd4ffde137..b2fec9723b6 100644 --- a/public/app/plugins/panel/geomap/layers/data/MarkersLegend.tsx +++ b/public/app/plugins/panel/geomap/layers/data/MarkersLegend.tsx @@ -52,8 +52,8 @@ export function MarkersLegend(props: MarkersLegendProps) { } const thresholds = color.field?.config?.thresholds; - if (!thresholds) { - return
no thresholds????
; + if (!thresholds || thresholds.steps.length < 2) { + return
; // don't show anything in the legend } return (