Fixes bug on multiple template select, on choosing not existing template and then click to open available profiles

This commit is contained in:
apapachristou 2020-09-14 14:30:12 +03:00
parent b3ffd39151
commit c943a2d297
1 changed files with 1 additions and 1 deletions

View File

@ -53,6 +53,6 @@ export class AvailableProfilesComponent extends BaseComponent implements OnInit
}
isOptionSelected(profile: any) {
return this.formGroup.value.map(x => x.id).indexOf(profile.id) !== -1;
return this.formGroup.value ? this.formGroup.value.map(x => x.id).indexOf(profile.id) !== -1 : null;
}
}