Skip to content

Commit b7df868

Browse files
authored
Update scratch3_control.js
1 parent 6ed8060 commit b7df868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/scratch3_control.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ class Scratch3ControlBlocks {
367367
const wasCompiled = thread.isCompiled;
368368
thread.isCompiled = false; // Failsafe
369369

370-
const outerLoop = optData.loopBlock.id ?? this._getLoopBlock(thread);
370+
const outerLoop = optData.loopBlock?.id ?? this._getLoopBlock(thread);
371371
if (!outerLoop) {
372372
throw `All "${type} loop" blocks must be inside of a looping block.`;
373373
return;

0 commit comments

Comments
 (0)