summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-05-15 18:05:18 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-05-15 18:05:29 +0800
commitc3e2270c9694e0cbd2835d0d1ae7d14405ba0e8e (patch)
tree10ae29b577e798b631961f5db339a6b14a93c090 /usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts
parent4ae5d325db70282d453a27c6790433e3ff0ed2f9 (diff)
Fix instance instantiation for e2e/NS
Change-Id: Ib3813f16b208422492c6b8f4763d7b3660c735f6 Issue-ID: USECASEUI-255 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts')
-rw-r--r--usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts b/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts
index dc8566e0..13300eda 100644
--- a/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts
+++ b/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts
@@ -102,11 +102,13 @@ export class E2eCreationComponent implements OnInit {
console.log(this.templateParameters);
console.log(this.roote2e)
}else if(type == "ns"){
- if(typeof data["model"]=='string'){
+ if(data["model"]!=undefined && typeof data["model"]=='string'){
this.nsTemplateParameters = JSON.parse(data["model"]);
+ console.log(data["model"]);
}else{
this.nsTemplateParameters = data;
}
+ console.log(this.nsTemplateParameters);
this.nsTemplateParameters["inputs2"] = [];
let inputs = this.nsTemplateParameters.inputs;
for(let key in inputs){