mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Geomap: hide legend for markers with single threshold (#38734)
This commit is contained in:
@@ -52,8 +52,8 @@ export function MarkersLegend(props: MarkersLegendProps) {
|
||||
}
|
||||
|
||||
const thresholds = color.field?.config?.thresholds;
|
||||
if (!thresholds) {
|
||||
return <div className={style.infoWrap}>no thresholds????</div>;
|
||||
if (!thresholds || thresholds.steps.length < 2) {
|
||||
return <div></div>; // don't show anything in the legend
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user