(cherry picked from commit 823581add8)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
co-authored by
Dominik Prokop
parent
0b02a7e918
commit
8ba26e2f09
@@ -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