Fix Form Service parseForm (#2440)

This commit is contained in:
Maurizio Vitale
2017-10-05 17:13:02 +01:00
committed by Eugenio Romano
parent 337c97d94c
commit 6d3c3316d9
4 changed files with 256 additions and 3 deletions

View File

@@ -66,8 +66,8 @@ export class FormListDemoComponent {
onRowDblClick(event: CustomEvent) {
let rowForm = event.detail.value.obj;
this.formService.getFormDefinitionById(rowForm.id).subscribe((definition) => {
let form = this.formService.parseForm(definition);
this.formService.getFormDefinitionById(rowForm.id).subscribe((formModel) => {
let form = this.formService.parseForm(formModel.formDefinition);
this.form = form;
});