Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
removing value if reference is specified on an argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Sestok committed Nov 29, 2017
1 parent 1ac8374 commit 4e948da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/playbook/playbook.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,10 @@ export class PlaybookComponent {
if ((argument.value == null || argument.value === '') && argument.reference === '') {
idsToRemove.unshift(args.indexOf(argument));
}
// Additionally, remove "value" if reference is specified
if (argument.reference && argument.value) {
delete argument.value;
}
}
// Actually splice out all the args
for (const id of idsToRemove) {
Expand Down

0 comments on commit 4e948da

Please sign in to comment.