mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -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];
|
||||
|
||||
if (!field || field.config.custom.hideFrom?.legend) {
|
||||
if (!field || field.config.custom?.hideFrom?.legend) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user