From 2f32565476ad6dea21c5ccc224a8bd38d5631d85 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 10 Dec 2022 15:35:48 -0800 Subject: [PATCH] fix user / group editing --- .../app/components/common/edit-dialog/edit-dialog.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts b/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts index 5e61ccbb2..8acbdb9c2 100644 --- a/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts +++ b/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts @@ -47,7 +47,6 @@ export abstract class EditDialogComponent< if (this.object['permissions']) { this.object['set_permissions'] = this.object['permissions'] } - console.log(this.object) this.object['permissions_form'] = { owner: (this.object as ObjectWithPermissions).owner, @@ -98,7 +97,7 @@ export abstract class EditDialogComponent< save() { const formValues = Object.assign({}, this.objectForm.value) const permissionsObject: PermissionsFormObject = - this.objectForm.get('permissions_form').value + this.objectForm.get('permissions_form')?.value if (permissionsObject) { formValues.owner = permissionsObject.owner formValues.set_permissions = permissionsObject.set_permissions