mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Secure from custom config being undefined in PlotLegend (#34975)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user