fix(richtext-lexical): incorrect error check in TableActionMenu (#7964)
Fixes #7961 and #8021
This commit is contained in:
@@ -70,7 +70,7 @@ function isTableSelectionRectangular(selection: TableSelection): boolean {
|
|||||||
const node = nodes[i]
|
const node = nodes[i]
|
||||||
if ($isTableCellNode(node)) {
|
if ($isTableCellNode(node)) {
|
||||||
const row = node.getParentOrThrow()
|
const row = node.getParentOrThrow()
|
||||||
if ($isTableRowNode(row)) {
|
if (!$isTableRowNode(row)) {
|
||||||
throw new Error('Expected CellNode to have a RowNode parent')
|
throw new Error('Expected CellNode to have a RowNode parent')
|
||||||
}
|
}
|
||||||
if (currentRow !== row) {
|
if (currentRow !== row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user