summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src
diff options
context:
space:
mode:
authorTao Shen <shentao@chinamobile.com>2018-11-12 10:55:29 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-12 10:55:29 +0000
commit04f68456281aa8ecdb098ac71d2df20c14069082 (patch)
tree716983cb4e3996a1bec2158f550b86a72a01cb4c /usecaseui-portal/src
parentb683d18808e844b9f94078d87310fc953d5f1314 (diff)
parent9da23b6872664c73705d20bbc9878e74e9bab8c2 (diff)
Merge "fix serviceInstance bugs for CCVPN"
Diffstat (limited to 'usecaseui-portal/src')
-rw-r--r--usecaseui-portal/src/app/services/services-list/services-list.component.ts7
1 files changed, 7 insertions, 0 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 f2e05076..7fac33de 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
@@ -162,6 +162,13 @@ export class ServicesListComponent implements OnInit {
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;
+ }
+ })
if(item["serviceDomain"]=="Network Service"){
item["childServiceInstances"] = item["vnfInfo"].map((vnf)=>{
vnf["serviceDomain"] = "vnf";