Skip to content

Commit 8da7d17

Browse files
authored
fix: account for undefined first sibling (#9368)
1 parent 3fdfe47 commit 8da7d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/block_svg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export class BlockSvg
269269
const firstSibling: BlockSvg = surroundParent.getChildren(false)[0];
270270
const siblings: BlockSvg[] = [firstSibling];
271271
let nextSibling: BlockSvg | null = firstSibling;
272-
while ((nextSibling = nextSibling.getNextBlock())) {
272+
while ((nextSibling = nextSibling?.getNextBlock())) {
273273
siblings.push(nextSibling);
274274
}
275275
return siblings;

0 commit comments

Comments
 (0)