Issue-ID: SDC-4612
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: Id2f3e1f88470e0337a84868f2a66bc53e131e55b
}
private addPropertyToDropdown(propertyDropdownValue: PropertyDropdownValue, propertyList: Array<PropertyDropdownValue>): void {
- propertyList.push(propertyDropdownValue);
- propertyList.sort((a, b) => a.propertyLabel.localeCompare(b.propertyLabel));
+ if (!propertyList.find(prop => prop.propertyName === propertyDropdownValue.propertyName)) {
+ propertyList.push(propertyDropdownValue);
+ propertyList.sort((a, b) => a.propertyLabel.localeCompare(b.propertyLabel));
+ }
}
private addPropertiesToDropdown(properties: Array<PropertyBEModel | AttributeBEModel>, propertyList: Array<PropertyDropdownValue>): void {