We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22284a1 commit 9e9443cCopy full SHA for 9e9443c
blocks_vertical/control.js
@@ -378,7 +378,7 @@ Blockly.Blocks['control_expandableIf'] = {
378
const boolInput = this.getInput(`BOOL${this.branches_}`);
379
if (boolInput) {
380
const block = boolInput.connection.targetBlock();
381
- if (block.type === "checkbox") block.dispose();
+ if (block && block.type === "checkbox") block.dispose();
382
else block.outputConnection.disconnect();
383
}
384
0 commit comments