// Modify the selected org unit via data binding.
// This WILL result in an onChange event firing.
@Input() set applyOrg(org: IdlObject) {
- if (org) {
- this.selected = this.formatForDisplay(org);
- }
+ this.selected = org ? this.formatForDisplay(org) : null;
}
permLimitOrgs: number[];
// Modify the selected org unit by ID via data binding.
// This WILL result in an onChange event firing.
@Input() set applyOrgId(id: number) {
- if (id) {
- this.selected = this.formatForDisplay(this.org.get(id));
- }
+ this.selected = id ? this.formatForDisplay(this.org.get(id)) : null;
}
// Emitted when the org unit value is changed via the selector.