Skip to content
Snippets Groups Projects
Commit be8cc94b authored by Florent Poittevin's avatar Florent Poittevin
Browse files

fix: remove useless code

parent 36a162b8
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,7 @@ export class SharedPersonOrgunitRolePresentational extends SharedAbstractPresent
});
} else {
const form = this._fb.group({
[this.formDefinition.id]: [{value: person.resId, disabled: person.isReadonly}, [Validators.required]],
[this.formDefinition.id]: [person.resId, [Validators.required]],
[this.formDefinition.listId]: [person.roles.map(r => r.resId), [Validators.required]],
});
if (person.isReadonly) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment