We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e9443c commit 6dfd651Copy full SHA for 6dfd651
blocks_vertical/control.js
@@ -378,8 +378,10 @@ Blockly.Blocks['control_expandableIf'] = {
378
const boolInput = this.getInput(`BOOL${this.branches_}`);
379
if (boolInput) {
380
const block = boolInput.connection.targetBlock();
381
- if (block && block.type === "checkbox") block.dispose();
382
- else block.outputConnection.disconnect();
+ if (block) {
+ if (block.type === "checkbox") block.dispose();
383
+ else block.outputConnection.disconnect();
384
+ }
385
}
386
387
this.removeInput(`BOOL${this.branches_}`);
0 commit comments