fix chart mousedata crash

This commit is contained in:
saml33 2023-11-20 14:06:49 +11:00
parent bfaf129c99
commit 19b62a1794
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ const DetailedAreaOrBarChart: FunctionComponent<
const index = filteredData.findIndex(
(d: any) => d[xKey] === mouseData[xKey],
)
const currentValue = filteredData[index][yKey]
const currentValue = filteredData[index]?.[yKey]
const change =
index >= 0