Skip to content

Commit

Permalink
fix: procedure callers now remove inputs properly (google#5751)
Browse files Browse the repository at this point in the history
  • Loading branch information
alschmiedt authored Dec 1, 2021
1 parent 208d200 commit 47c8210
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 @@ -808,7 +808,7 @@ const procedureCall = {
}
}
// 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 47c8210

Please sign in to comment.