From e2ac112c180b774df5fef6d39d6eff6ccc5ef602 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 24 Jun 2024 14:51:33 +0100 Subject: [PATCH] Fix crash when selecting cells in new row --- packages/frontend-core/src/components/grid/stores/ui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/frontend-core/src/components/grid/stores/ui.js b/packages/frontend-core/src/components/grid/stores/ui.js index a52abd09d5..a465d6ed81 100644 --- a/packages/frontend-core/src/components/grid/stores/ui.js +++ b/packages/frontend-core/src/components/grid/stores/ui.js @@ -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