Skip to content

Commit

Permalink
Update parametrise-action-dialog.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
polterguy committed Jan 12, 2024
1 parent a108604 commit 911ec74
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ export class ParametriseActionDialog implements OnInit {
this.model[idx] = this.data.model[idx];
} else if (this.data.input[idx].default) {
this.model[idx] = this.data.input[idx].default;
} else if (field.props.options && (<any[]>field.props.options).length > 0) {
for (const idxOpt of <any[]>field.props.options) {
if (idxOpt.value.endsWith('/' + idx)) {
this.model[idx] = idxOpt.value;
}
}
}
}
}
Expand Down

0 comments on commit 911ec74

Please sign in to comment.