summaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-workflow-designer-ui')
-rw-r--r--sdc-workflow-designer-ui/src/app/model/swagger.ts4
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 {