We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b0a624 commit 754c5a5Copy full SHA for 754c5a5
1 file changed
blocks_vertical/control.js
@@ -343,7 +343,7 @@ Blockly.Blocks['control_expandableIf'] = {
343
}
344
345
for (var i = index - 1; i < oldConnections.length; i++) {
346
- if (oldConnections[i]?.type === "checkbox") oldConnections[i].dispose();
+ if (oldConnections[i] && oldConnections[i].type === "checkbox") oldConnections[i].dispose();
347
348
349
},
0 commit comments