From 22cae402221f742afd9af2a32549506350328591 Mon Sep 17 00:00:00 2001 From: Andy Wilson Date: Fri, 3 May 2024 10:58:25 +0100 Subject: [PATCH] fix: remove if statement --- packages/lexical/src/plugins/TableActionMenuPlugin.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/lexical/src/plugins/TableActionMenuPlugin.tsx b/packages/lexical/src/plugins/TableActionMenuPlugin.tsx index 28d3c45ca..013127867 100644 --- a/packages/lexical/src/plugins/TableActionMenuPlugin.tsx +++ b/packages/lexical/src/plugins/TableActionMenuPlugin.tsx @@ -69,9 +69,6 @@ function isTableSelectionRectangular(selection: TableSelection): boolean { const node = nodes[i]; if ($isTableCellNode(node)) { const row = node.getParentOrThrow(); - if ($isTableRowNode(row)) { - throw new Error('Expected CellNode to have a RowNode parent'); - } if (currentRow !== row) { if (expectedColumns !== null && currentColumns !== expectedColumns) { return false;