mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 15:16:42 +00:00
fix: display correct graph tooltip title (#3562)
This commit is contained in:
parent
c22122212d
commit
2370f03c52
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ const ChartTooltip: FC<ChartTooltipProps> = ({
|
|||
const name = useMemo(() => {
|
||||
const metricName = (series[seriesIdx]?.label || "").replace(/{.+}/gmi, "").trim();
|
||||
return getLegendLabel(metricName);
|
||||
}, []);
|
||||
}, [series, seriesIdx]);
|
||||
|
||||
const fields = useMemo(() => {
|
||||
const metric = metrics[seriesIdx - 1]?.metric || {};
|
||||
|
|
Loading…
Reference in a new issue