Fix crash when selecting cells in new row

This commit is contained in:
Andrew Kingston 2024-06-24 14:51:33 +01:00
parent d923f4edb2
commit e2ac112c18
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ export const deriveStores = context => {
// Get source and target row and column indices
const sourceInfo = parseCellID(sourceCellId)
const targetInfo = parseCellID(targetCellId)
if (sourceInfo.rowId === NewRowID) {
return []
}
// Row indices
const sourceRowIndex = $rowLookupMap[sourceInfo.rowId].__idx