Skip to content

Commit

Permalink
fix: remove if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Wilson committed May 3, 2024
1 parent e3cab77 commit 22cae40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/lexical/src/plugins/TableActionMenuPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 22cae40

Please sign in to comment.