58789: Fields not being filled in fixed

This commit is contained in:
Kristof De Langhe
2019-01-23 15:01:34 +01:00
parent 6e9cad0fba
commit cba07300d1
2 changed files with 7 additions and 13 deletions

View File

@@ -107,12 +107,9 @@ export class MetadataSchemaFormComponent implements OnInit {
this.formGroup = this.formBuilderService.createFormGroup(this.formModel);
this.registryService.getActiveMetadataSchema().subscribe((schema) => {
this.formGroup.patchValue({
schema: {
name: schema != null ? schema.prefix : '',
namespace: schema != null ? schema.namespace : ''
}
}
);
name: schema != null ? schema.prefix : '',
namespace: schema != null ? schema.namespace : ''
});
});
});
}

View File

@@ -130,13 +130,10 @@ export class MetadataFieldFormComponent implements OnInit {
this.formGroup = this.formBuilderService.createFormGroup(this.formModel);
this.registryService.getActiveMetadataField().subscribe((field) => {
this.formGroup.patchValue({
field: {
element: field != null ? field.element : '',
qualifier: field != null ? field.qualifier : '',
scopeNote: field != null ? field.scopeNote : ''
}
}
);
element: field != null ? field.element : '',
qualifier: field != null ? field.qualifier : '',
scopeNote: field != null ? field.scopeNote : ''
});
});
});
}