From 7c30ad139f8c3e2c3397d84d52239b4719a80301 Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Wed, 22 Jan 2020 16:45:22 +0200 Subject: [PATCH] check properties object exists (#1316) --- .../dialogs/node-template/create-from-template.dialog.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/dialogs/node-template/create-from-template.dialog.ts b/src/app/dialogs/node-template/create-from-template.dialog.ts index 2b5ad1f90..1caf9a64d 100644 --- a/src/app/dialogs/node-template/create-from-template.dialog.ts +++ b/src/app/dialogs/node-template/create-from-template.dialog.ts @@ -64,9 +64,12 @@ export class CreateFromTemplateDialogComponent implements OnInit { this.forbidSpecialCharacters ] ], - title: [this.data.properties['cm:title'], Validators.maxLength(256)], + title: [ + this.data.properties ? this.data.properties['cm:title'] : '', + Validators.maxLength(256) + ], description: [ - this.data.properties['cm:description'], + this.data.properties ? this.data.properties['cm:description'] : '', Validators.maxLength(512) ] });