mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
XYChart: Prevent crash on point hover (#70225)
This commit is contained in:
parent
67a6a99e04
commit
88988e4337
@ -72,8 +72,8 @@ export const TooltipView = ({
|
||||
let yValue: YValue | null = null;
|
||||
let extraFacets: ExtraFacets | null = null;
|
||||
if (seriesMapping === SeriesMapping.Manual && manualSeriesConfigs) {
|
||||
const colorFacetFieldName = manualSeriesConfigs[hoveredPointIndex].pointColor?.field ?? '';
|
||||
const sizeFacetFieldName = manualSeriesConfigs[hoveredPointIndex].pointSize?.field ?? '';
|
||||
const colorFacetFieldName = manualSeriesConfigs[hoveredPointIndex]?.pointColor?.field ?? '';
|
||||
const sizeFacetFieldName = manualSeriesConfigs[hoveredPointIndex]?.pointSize?.field ?? '';
|
||||
|
||||
const colorFacet = colorFacetFieldName ? findField(frame, colorFacetFieldName) : undefined;
|
||||
const sizeFacet = sizeFacetFieldName ? findField(frame, sizeFacetFieldName) : undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user