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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user