From 3a79787450d139903ddc1701595a209d16bc9450 Mon Sep 17 00:00:00 2001 From: shikha0203 Date: Tue, 30 May 2023 17:05:12 +0100 Subject: Actual sub mapping node not used during import Issue-ID: SDC-4518 Signed-off-by: shikha0203 Change-Id: I56f7334fac3e2cdd54c68850909370fe7b52ea38 --- .../app/view-models/workspace/tabs/general/general-view-model.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'catalog-ui') diff --git a/catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts b/catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts index f550ccf355..685f564f27 100644 --- a/catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts +++ b/catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts @@ -929,6 +929,13 @@ export class GeneralViewModel { } }); } + if((this.$scope.component).derivedFromGenericType) { + baseTypeResponseList.baseTypes.forEach(baseTypeObj => { + if(baseTypeObj.toscaResourceName == (this.$scope.component).derivedFromGenericType) { + baseType = baseTypeObj; + } + }); + } baseType.versions.reverse().forEach(version => this.$scope.baseTypeVersions.push(version)); this.$scope.component.derivedFromGenericType = baseType.toscaResourceName; this.$scope.component.derivedFromGenericVersion = this.$scope.baseTypeVersions[0]; -- cgit 1.2.3-korg