summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usecaseui-portal/src/app/services/services-list/services-list.component.ts14
1 files changed, 3 insertions, 11 deletions
diff --git a/usecaseui-portal/src/app/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/services/services-list/services-list.component.ts
index 7a5cf3a8..959df390 100644
--- a/usecaseui-portal/src/app/services/services-list/services-list.component.ts
+++ b/usecaseui-portal/src/app/services/services-list/services-list.component.ts
@@ -293,18 +293,8 @@ export class ServicesListComponent implements OnInit {
if(typeof item == "string"){
item = JSON.parse(item);
}
- if(typeof item["childServiceInstances"] == "string"){
- item["childServiceInstances"] = JSON.parse(item["childServiceInstances"]);
- }
- item["childServiceInstances"] = item["childServiceInstances"].map((child)=>{
- if(typeof child == "string"){
- return JSON.parse(child);
- }else{
- return child;
- }
- })
- item["iconMore"]=this.iconMore;
+ item["iconMore"]=this.iconMore;
if(item["serviceDomain"]=="Network Service"){
if(item["vnfInfo"]){
item["childServiceInstances"] = item["vnfInfo"].map((vnf)=>{
@@ -322,6 +312,8 @@ export class ServicesListComponent implements OnInit {
return vnfInfo;
})
}
+ }else {
+ item["childServiceInstances"] = [];
}
//