summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/nodeModel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/src/app/shared/models/nodeModel.ts')
-rw-r--r--vid-webpack-master/src/app/shared/models/nodeModel.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/vid-webpack-master/src/app/shared/models/nodeModel.ts b/vid-webpack-master/src/app/shared/models/nodeModel.ts
index ee57ec038..610522d78 100644
--- a/vid-webpack-master/src/app/shared/models/nodeModel.ts
+++ b/vid-webpack-master/src/app/shared/models/nodeModel.ts
@@ -87,7 +87,10 @@ export class Level1Model extends NodeModel{
}
}
private getIsEcompGeneratedNaming(vnfJson) {
- const ecompGeneratedNaming = vnfJson.properties.ecomp_generated_naming;
+ let ecompGeneratedNaming;
+ if (vnfJson.properties) {
+ ecompGeneratedNaming = vnfJson.properties.ecomp_generated_naming;
+ }
return ecompGeneratedNaming === "true";
};
}