Fix 'create' edit dialog without permissions form

This commit is contained in:
shamoon 2023-05-17 11:40:43 -07:00
parent c04ded6fd8
commit a83c7c64b5

@ -69,7 +69,7 @@ export abstract class EditDialogComponent<
this.userService.listAll().subscribe((r) => {
this.users = r.results
if (this.dialogMode === 'create') {
this.objectForm.get('permissions_form').setValue({
this.objectForm.get('permissions_form')?.setValue({
owner: this.settingsService.currentUser.id,
})
}