aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKruthi Bhat <krutbhat@att.com>2020-12-12 01:05:09 +0530
committerKruthi Bhat <krutbhat@att.com>2020-12-12 01:05:21 +0530
commiteb2b6b31d0e90c359a63befe1a23ba066df62d1c (patch)
treeca925e0c61b3c20b5c0ffad9ee349f8582a25f51
parent4d757af2fba0371ba44b0c83cb665d77379da17f (diff)
VF Module Upgrade blank pop-up issue
Change-Id: I24cb6e97e8a9d7bcda73ab0c69b242026d7be79b Issue-ID: VID-925 Signed-off-by: krutbhat@att.com
-rw-r--r--vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts13
1 files changed, 11 insertions, 2 deletions
diff --git a/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts b/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts
index da4e5c943..e067ad86d 100644
--- a/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts
+++ b/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/shared.tree.service.ts
@@ -574,8 +574,17 @@ export class SharedTreeService {
let returnValue = false;
if(node.data.type == 'VFmodule') {
let serviceHierarchy = this._store.getState().service.serviceHierarchy[serviceModelId];
- let vnf = node.parent.data.modelName;
- let baseModuleFlag= (serviceHierarchy.vnfs[vnf].vfModules[node.data.modelName].properties.baseModule) ? true: false;
+ let vnf :any;
+ let baseModuleFlag: any;
+
+ if(node.parent) {
+ vnf= node.parent.data.modelName;
+ }
+
+ if(vnf) {
+ baseModuleFlag=(serviceHierarchy.vnfs[vnf].vfModules[node.data.modelName].properties.baseModule) ? true: false;
+ }
+
if(baseModuleFlag) {
if(node.parent.children.length >1) {