Skip to content

Commit d9cccc7

Browse files
authored
fix(richtext-lexical): incorrect error check in TableActionMenu (#7964)
Fixes #7961 and #8021
1 parent 751803d commit d9cccc7

File tree

1 file changed

+1
-1
lines changed
  • packages/richtext-lexical/src/features/experimental_table/client/plugins/TableActionMenuPlugin

1 file changed

+1
-1
lines changed

packages/richtext-lexical/src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function isTableSelectionRectangular(selection: TableSelection): boolean {
7070
const node = nodes[i]
7171
if ($isTableCellNode(node)) {
7272
const row = node.getParentOrThrow()
73-
if ($isTableRowNode(row)) {
73+
if (!$isTableRowNode(row)) {
7474
throw new Error('Expected CellNode to have a RowNode parent')
7575
}
7676
if (currentRow !== row) {

0 commit comments

Comments
 (0)