Browse Source

fix(client): prevent memory leak

pull/6685/head
Kenrick Tandrian 2 months ago
parent
commit
078977de66
  1. 5
      apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts

5
apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts

@ -83,7 +83,10 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit {
] ]
}); });
this.accessForm.get('type')?.valueChanges.subscribe((accessType) => { this.accessForm
.get('type')
?.valueChanges.pipe(takeUntilDestroyed(this.destroyRef))
.subscribe((accessType) => {
const granteeUserIdControl = this.accessForm.get('granteeUserId'); const granteeUserIdControl = this.accessForm.get('granteeUserId');
const permissionsControl = this.accessForm.get('permissions'); const permissionsControl = this.accessForm.get('permissions');

Loading…
Cancel
Save