mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
fix: account for undefined first sibling (#9368)
This commit is contained in:
@@ -269,7 +269,7 @@ export class BlockSvg
|
||||
const firstSibling: BlockSvg = surroundParent.getChildren(false)[0];
|
||||
const siblings: BlockSvg[] = [firstSibling];
|
||||
let nextSibling: BlockSvg | null = firstSibling;
|
||||
while ((nextSibling = nextSibling.getNextBlock())) {
|
||||
while ((nextSibling = nextSibling?.getNextBlock())) {
|
||||
siblings.push(nextSibling);
|
||||
}
|
||||
return siblings;
|
||||
|
||||
Reference in New Issue
Block a user