fix chart mousedata crash
This commit is contained in:
parent
bfaf129c99
commit
19b62a1794
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue