fix(richtext-lexical): incorrect error check in TableActionMenu (#7964)

Fixes #7961 and #8021
This commit is contained in:
Riley Pearce
2024-09-02 07:59:02 +09:30
committed by GitHub
parent 751803d4f4
commit d9cccc7081

View File

@@ -70,7 +70,7 @@ function isTableSelectionRectangular(selection: TableSelection): boolean {
const node = nodes[i]
if ($isTableCellNode(node)) {
const row = node.getParentOrThrow()
if ($isTableRowNode(row)) {
if (!$isTableRowNode(row)) {
throw new Error('Expected CellNode to have a RowNode parent')
}
if (currentRow !== row) {