Skip to content

Commit 26267f4

Browse files
authored
Update procedures.js
1 parent a2ec624 commit 26267f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blocks_vertical/procedures.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ Blockly.Blocks['procedures_declaration'] = {
11371137

11381138
queueMicrotask(() => {
11391139
this.setColour(...this.color);
1140-
this.parentBlock_.setColour(...this.color);
1140+
if (this.parentBlock_) this.parentBlock_.setColour(...this.color);
11411141
});
11421142
},
11431143
// Shared.

0 commit comments

Comments
 (0)