mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
uPlot: Fix default value for plot legend visibility (#36660)
Fixed the condition, as the last part of `!seriesConfig.show ?? false` will never be evaluated because `!seriesConfig.show` always yields a boolean.
This commit is contained in:
parent
19d4213df6
commit
4e22823a49
@ -52,7 +52,7 @@ export const PlotLegend: React.FC<PlotLegendProps> = ({
|
||||
const seriesColor = scaleColor.color;
|
||||
|
||||
return {
|
||||
disabled: !seriesConfig.show ?? false,
|
||||
disabled: !(seriesConfig.show ?? true),
|
||||
fieldIndex,
|
||||
color: seriesColor,
|
||||
label,
|
||||
|
Loading…
Reference in New Issue
Block a user