FIX: UI: updateProperty duplicates
This commit is contained in:
parent
0111036617
commit
ac750e9515
@ -54,8 +54,11 @@ export class PropertyListComponent implements OnInit {
|
||||
}
|
||||
|
||||
private updateProperty(property: Property, existing: boolean): void {
|
||||
this.updateProperty2(this.booleans, property, existing);
|
||||
this.updateProperty2(this.shutters, property, existing);
|
||||
if (property.type === PropertyType.BOOLEAN) {
|
||||
this.updateProperty2(this.booleans, property, existing);
|
||||
} else if (property.type === PropertyType.SHUTTER) {
|
||||
this.updateProperty2(this.shutters, property, existing);
|
||||
}
|
||||
}
|
||||
|
||||
private updateProperty2(properties: Property[], property: Property, existing: boolean) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user