Skip to content

Commit

Permalink
[#1536] Use includes rather than in
Browse files Browse the repository at this point in the history
  • Loading branch information
msiodelski committed Oct 30, 2024
1 parent bbac226 commit 200cca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webui/src/app/forms/subnet-set-form.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ export class SubnetSetFormService {
}
const range = `${poolCtrl.get('range.start').value}-${poolCtrl.get('range.end').value}`
const params = this.convertFormToKeaParameters(
daemons.filter((d) => d.id in selectedDaemons),
daemons.filter((d) => selectedDaemons.includes(d.id)),
poolCtrl.get('parameters') as FormGroup<KeaPoolParametersForm>
)
const options = poolCtrl.get('options') as UntypedFormGroup
Expand Down Expand Up @@ -1121,7 +1121,7 @@ export class SubnetSetFormService {
}
const prefix = poolCtrl.get('prefixes.prefix').value
const params = this.convertFormToKeaParameters(
daemons.filter((d) => d.id in selectedDaemons),
daemons.filter((d) => selectedDaemons.includes(d.id)),
poolCtrl.get('parameters') as FormGroup<KeaPoolParametersForm>
)
const options = poolCtrl.get('options') as UntypedFormGroup
Expand Down

0 comments on commit 200cca4

Please sign in to comment.