Skip to content

Commit 754c5a5

Browse files
authored
i hate this compiler
1 parent 5b0a624 commit 754c5a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blocks_vertical/control.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ Blockly.Blocks['control_expandableIf'] = {
343343
}
344344
}
345345
for (var i = index - 1; i < oldConnections.length; i++) {
346-
if (oldConnections[i]?.type === "checkbox") oldConnections[i].dispose();
346+
if (oldConnections[i] && oldConnections[i].type === "checkbox") oldConnections[i].dispose();
347347
}
348348
}
349349
},

0 commit comments

Comments
 (0)