fix(console): initialize provider options (#5520)

fix: provider options initializer
This commit is contained in:
Max Peintner
2023-03-22 08:53:07 +00:00
committed by GitHub
parent 9257cf7086
commit e9df06df38
15 changed files with 9 additions and 17 deletions
@@ -41,12 +41,10 @@ export class EditDialogComponent implements OnInit {
}
public setCountryCallingCode(): void {
console.log(this);
let value = (this.dialogForm.controls[this.controlKey]?.value as string) || '';
this.countryPhoneCodes.forEach((code) => (value = value.replace(`+${code.countryCallingCode}`, '')));
value = value.trim();
this.dialogForm.controls[this.controlKey]?.setValue('+' + this.selected?.countryCallingCode + ' ' + value);
console.log(this);
}
ngOnInit(): void {