From d1e9af11f6c846d97713d64dd8b5f7e15cd1af95 Mon Sep 17 00:00:00 2001 From: vasraz Date: Thu, 15 Dec 2022 18:40:59 +0000 Subject: Fix 'Adding property to VF/Service throws js-exception'-bug Signed-off-by: Vasyl Razinkov Change-Id: I81009a79715f1719862e406e88be008294f94e37 Issue-ID: SDC-4310 --- .../properties-table/dynamic-property/dynamic-property.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'catalog-ui/src/app/ng2/components') diff --git a/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.ts b/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.ts index 360cfac6a0..57b991bf70 100644 --- a/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.ts +++ b/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.ts @@ -113,17 +113,16 @@ export class DynamicPropertyComponent { ngOnChanges() { this.propType = this.property.derivedDataType; this.propPath = (this.property instanceof PropertyFEModel) ? this.property.name : this.property.propertiesName; - this.propertyTestsId = this.getPropertyTestsId(); + this.rootProperty = (this.rootProperty) ? this.rootProperty : this.property; + this.propertyTestsId = this.getPropertyTestsId(); } - onClickPropertyRow = (property, event) => { // Because DynamicPropertyComponent is recrusive second time the event is fire event.stopPropagation = undefined event && event.stopPropagation && event.stopPropagation(); this.clickOnPropertyRow.emit(property); } - expandChildById = (id: string) => { this.expandedChildId = id; this.expandChild.emit(id); -- cgit 1.2.3-korg