Skip to content

Commit

Permalink
fix(orb-ui): fix agent policy edit failing (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpazuch authored Feb 9, 2022
1 parent 262c725 commit 765eb22
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ <h4>{{ isEdit ? 'Edit Agent Policy' : 'Create Agent Policy'}}</h4>
<span class="required">*</span>
</div>
<nb-select (selectedChange)="onTapSelected($event)"
[(selected)]="this.agentPolicy.policy.input.tap"
appearance="filled"
data-orb-qa-id="taps"
formControlName="selected_tap"
Expand Down Expand Up @@ -140,7 +139,7 @@ <h4>{{ isEdit ? 'Edit Agent Policy' : 'Create Agent Policy'}}</h4>
[type]="control.value.type"
nbTooltip="{{ control.value.description }}">
<nb-select *ngSwitchCase="'select'"
[(selected)]="agentPolicy.policy.input.config[control.key]"
[selected]="agentPolicy?.policy?.input?.tap"
[attr.data-orb-qa-id]="control.value.name"
[formControlName]="control.key"
[id]="control.value.name"
Expand Down Expand Up @@ -190,7 +189,6 @@ <h4>{{ isEdit ? 'Edit Agent Policy' : 'Create Agent Policy'}}</h4>
[type]="control.value.type"
nbTooltip="{{ control.value.description }}">
<nb-select *ngSwitchCase="'select'"
[(selected)]="agentPolicy.policy.input.config[control.key]"
[attr.data-orb-qa-id]="control.value.name"
[formControlName]="control.key"
[id]="control.value.name"
Expand Down Expand Up @@ -244,7 +242,6 @@ <h4>{{ isEdit ? 'Edit Agent Policy' : 'Create Agent Policy'}}</h4>
[type]="control.value.type"
nbTooltip="{{ control.value.description }}">
<nb-select *ngSwitchCase="'select'"
[(selected)]="agentPolicy.policy.input.config[control.key]"
[attr.data-orb-qa-id]="control.value.name"
[formControlName]="control.key"
[id]="control.value.name"
Expand Down

0 comments on commit 765eb22

Please sign in to comment.