Skip to content

Commit 6dfd651

Browse files
authored
bleh
1 parent 9e9443c commit 6dfd651

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

blocks_vertical/control.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,10 @@ Blockly.Blocks['control_expandableIf'] = {
378378
const boolInput = this.getInput(`BOOL${this.branches_}`);
379379
if (boolInput) {
380380
const block = boolInput.connection.targetBlock();
381-
if (block && block.type === "checkbox") block.dispose();
382-
else block.outputConnection.disconnect();
381+
if (block) {
382+
if (block.type === "checkbox") block.dispose();
383+
else block.outputConnection.disconnect();
384+
}
383385
}
384386

385387
this.removeInput(`BOOL${this.branches_}`);

0 commit comments

Comments
 (0)