diff options
author | HuabingZhao <zhao.huabing@zte.com.cn> | 2017-09-14 05:56:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-14 05:56:23 +0000 |
commit | 0ed1b5d2cf2bf4769980238d0378ecae18ab1f35 (patch) | |
tree | 6dab7fdf64672a1c353d1b9167254480698ebf03 | |
parent | 35988c3cf031ce50a0bd2b61fea6c8d7abacf356 (diff) | |
parent | c437d750a4d2480cf880daa8a52c9d89f2dae400 (diff) |
Merge "fix swagger definition string convert error"
-rw-r--r-- | sdc-workflow-designer-ui/src/app/model/swagger.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sdc-workflow-designer-ui/src/app/model/swagger.ts b/sdc-workflow-designer-ui/src/app/model/swagger.ts index e90c5e9b..e0ed1495 100644 --- a/sdc-workflow-designer-ui/src/app/model/swagger.ts +++ b/sdc-workflow-designer-ui/src/app/model/swagger.ts @@ -124,7 +124,9 @@ export class Swagger { this.info = new SwaggerInfo(info); this.paths = this.initPaths(paths); this.swagger = swagger; - this.tags = tags.map(tag => new SwaggerTag(tag)); + if(tags) { + this.tags = tags.map(tag => new SwaggerTag(tag)); + } } private initPaths(paths: any): any { |