summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/src')
-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) {