Skip to content

Commit

Permalink
tsc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
icrosil committed Dec 11, 2023
1 parent 6ddd2cb commit 4f6e1f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/lexical-table/src/LexicalGridSelection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export class GridSelection extends INTERNAL_PointSelection {

insertNodes(nodes: Array<LexicalNode>) {
const focusNode = this.focus.getNode();
invariant(
$isElementNode(focusNode),
'Expected GridSelection focus to be an ElementNode',
);
const selection = $normalizeSelection__EXPERIMENTAL(
focusNode.select(0, focusNode.getChildrenSize()),
);
Expand Down

0 comments on commit 4f6e1f6

Please sign in to comment.