mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-06-16 17:54:45 +00:00
check properties object exists (#1316)
This commit is contained in:
parent
9e4e4a9b0c
commit
7c30ad139f
@ -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)
|
||||
]
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user