summaryrefslogtreecommitdiffstats
path: root/catalog-ui
diff options
context:
space:
mode:
authorshikha0203 <shivani.khare@est.tech>2023-05-30 17:05:12 +0100
committerMichael Morris <michael.morris@est.tech>2023-06-02 18:10:12 +0000
commit3a79787450d139903ddc1701595a209d16bc9450 (patch)
tree3a27a202fb690c0a99b65f5bd3adbb0f6eed3edc /catalog-ui
parent222555c7995645416a47bc52ed8837e3afde8e21 (diff)
Actual sub mapping node not used during import
Issue-ID: SDC-4518 Signed-off-by: shikha0203 <shivani.khare@est.tech> Change-Id: I56f7334fac3e2cdd54c68850909370fe7b52ea38
Diffstat (limited to 'catalog-ui')
-rw-r--r--catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts7
1 files changed, 7 insertions, 0 deletions
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((<Service>this.$scope.component).derivedFromGenericType) {
+ baseTypeResponseList.baseTypes.forEach(baseTypeObj => {
+ if(baseTypeObj.toscaResourceName == (<Service>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];