mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Secure from custom config being undefined in PlotLegend (#34975)
This commit is contained in:
parent
aba1801193
commit
823581add8
@ -35,7 +35,7 @@ export const PlotLegend: React.FC<PlotLegendProps> = ({
|
|||||||
|
|
||||||
const field = data[fieldIndex.frameIndex]?.fields[fieldIndex.fieldIndex];
|
const field = data[fieldIndex.frameIndex]?.fields[fieldIndex.fieldIndex];
|
||||||
|
|
||||||
if (!field || field.config.custom.hideFrom?.legend) {
|
if (!field || field.config.custom?.hideFrom?.legend) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user