Skip to content
Snippets Groups Projects
Commit 3d0abd4b authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #25257 TIME 0:15 fix undefined contact value

parent a83d53b8
No related branches found
No related tags found
No related merge requests found
...@@ -169,6 +169,9 @@ export class ContactAutocompleteComponent implements OnInit { ...@@ -169,6 +169,9 @@ export class ContactAutocompleteComponent implements OnInit {
selectOpt(ev: any) { selectOpt(ev: any) {
this.setFormValue(ev.option.value); this.setFormValue(ev.option.value);
if (!this.functions.empty(this.controlAutocomplete.value.find((item: any) => this.functions.empty(item.id)))) {
this.controlAutocomplete.setValue(this.controlAutocomplete.value.filter((item: any) => !this.functions.empty(item.id)));
}
this.afterSelected.emit(ev.option.value); this.afterSelected.emit(ev.option.value);
this.myControl.setValue(''); this.myControl.setValue('');
this.afterContactSelected.emit(ev.option.value); this.afterContactSelected.emit(ev.option.value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment