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) ] });