diff options
author | 2022-12-15 18:40:59 +0000 | |
---|---|---|
committer | 2022-12-15 18:43:39 +0000 | |
commit | d1e9af11f6c846d97713d64dd8b5f7e15cd1af95 (patch) | |
tree | 7c87c0e98b34837248432741e5d8b16aa84c6ff7 /catalog-ui/src/app/ng2/components/logic/properties-table | |
parent | d07e109271bacc8363458d4cd04397afec79596e (diff) |
Fix 'Adding property to VF/Service throws js-exception'-bug
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I81009a79715f1719862e406e88be008294f94e37
Issue-ID: SDC-4310
Diffstat (limited to 'catalog-ui/src/app/ng2/components/logic/properties-table')
-rw-r--r-- | catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.ts | 5 |
1 files changed, 2 insertions, 3 deletions
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 : <PropertyFEModel>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); |