Fixes bug on multiple template select, on choosing not existing template and then click to open available profiles
This commit is contained in:
parent
b3ffd39151
commit
c943a2d297
|
@ -53,6 +53,6 @@ export class AvailableProfilesComponent extends BaseComponent implements OnInit
|
||||||
}
|
}
|
||||||
|
|
||||||
isOptionSelected(profile: any) {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue