Fix crash when selecting cells in new row
This commit is contained in:
parent
d923f4edb2
commit
e2ac112c18
|
@ -112,6 +112,9 @@ export const deriveStores = context => {
|
||||||
// Get source and target row and column indices
|
// Get source and target row and column indices
|
||||||
const sourceInfo = parseCellID(sourceCellId)
|
const sourceInfo = parseCellID(sourceCellId)
|
||||||
const targetInfo = parseCellID(targetCellId)
|
const targetInfo = parseCellID(targetCellId)
|
||||||
|
if (sourceInfo.rowId === NewRowID) {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
|
||||||
// Row indices
|
// Row indices
|
||||||
const sourceRowIndex = $rowLookupMap[sourceInfo.rowId].__idx
|
const sourceRowIndex = $rowLookupMap[sourceInfo.rowId].__idx
|
||||||
|
|
Loading…
Reference in New Issue