Skip to content

Commit

Permalink
Typescript action builder: clear actions on build()
Browse files Browse the repository at this point in the history
  • Loading branch information
maxifom committed Mar 26, 2022
1 parent 85754a4 commit 7f6c62c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/ts/action_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export class ActionBuilder {
}
build(): types.Action[] {
return this.actions;
let actions = this.actions;
this.actions = [];
return actions;
}
{{range $i, $a := .Actions -}}
Expand Down

0 comments on commit 7f6c62c

Please sign in to comment.