From d384c6e15673313c3cbba04f0cde562a8894a8ae Mon Sep 17 00:00:00 2001 From: cyuamber Date: Wed, 11 Sep 2019 10:11:55 +0800 Subject: feat:mock local json data for services-list page Change-Id: I2e85f93c4ad2377614c2eaadd9c0488cc6178fce Issue-ID: USECASEUI-307 Signed-off-by: cyuamber --- .../src/app/views/ccvpn-creation/ccvpn-creation.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usecaseui-portal/src/app/views') diff --git a/usecaseui-portal/src/app/views/ccvpn-creation/ccvpn-creation.component.ts b/usecaseui-portal/src/app/views/ccvpn-creation/ccvpn-creation.component.ts index cb1c61df..8e194b28 100644 --- a/usecaseui-portal/src/app/views/ccvpn-creation/ccvpn-creation.component.ts +++ b/usecaseui-portal/src/app/views/ccvpn-creation/ccvpn-creation.component.ts @@ -80,7 +80,7 @@ export class CcvpnCreationComponent implements OnInit { } getccvpnTemParameters(data) { //Get template parameters - if (typeof data["model"] == 'string') { + if (data.hasOwnProperty("model") && typeof data["model"] == 'string') { data = JSON.parse(data["model"]); } let inputss = data["inputs"]; -- cgit 1.2.3-korg