Skip to content

Commit

Permalink
fix: procedure callers now remove inputs properly
Browse files Browse the repository at this point in the history
  • Loading branch information
alschmiedt committed Nov 30, 2021
1 parent c0d22f2 commit e136bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ Blockly.Blocks['procedures_callnoreturn'] = {
}
}
// Remove deleted inputs.
for (let i = this.itemCount_; this.getInput('ARG' + i); i++) {
for (let i = this.arguments_.length; this.getInput('ARG' + i); i++) {
this.removeInput('ARG' + i);
}
// Add 'with:' if there are parameters, remove otherwise.
Expand Down

0 comments on commit e136bb7

Please sign in to comment.