Sponsored-by: Evergreen Community Development Initiative
Sponsored-by: Georgia Public Library Service
Sponsored-by: Indiana State Library
Sponsored-by: C/W MARS
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
// Modify the selected org unit via data binding.
// This WILL NOT 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;
}
// Modify the selected org unit by ID via data binding.
// This WILL NOT 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;
}
// Limit org unit display to those where the logged in user