fix: scrolling trades grid prevRowNode data becomes undefined (#874)
This commit is contained in:
parent
bb5067146c
commit
54cf70fa42
@ -24,7 +24,7 @@ const changeCellClass =
|
|||||||
|
|
||||||
if (typeof rowIndex === 'number') {
|
if (typeof rowIndex === 'number') {
|
||||||
const prevRowNode = api.getModel().getRow(rowIndex + 1);
|
const prevRowNode = api.getModel().getRow(rowIndex + 1);
|
||||||
const prevValue = prevRowNode?.data[dataKey];
|
const prevValue = prevRowNode?.data && prevRowNode.data[dataKey];
|
||||||
const valueNum = new BigNumber(value);
|
const valueNum = new BigNumber(value);
|
||||||
|
|
||||||
if (valueNum.isGreaterThan(prevValue)) {
|
if (valueNum.isGreaterThan(prevValue)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user