fix: scrolling trades grid prevRowNode data becomes undefined (#874)

This commit is contained in:
m.ray 2022-07-27 10:26:32 +02:00 committed by GitHub
parent bb5067146c
commit 54cf70fa42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ const changeCellClass =
if (typeof rowIndex === 'number') {
const prevRowNode = api.getModel().getRow(rowIndex + 1);
const prevValue = prevRowNode?.data[dataKey];
const prevValue = prevRowNode?.data && prevRowNode.data[dataKey];
const valueNum = new BigNumber(value);
if (valueNum.isGreaterThan(prevValue)) {