fix: resolved conditions permission not getting added from new policy button

This commit is contained in:
=
2025-01-08 19:48:13 +05:30
parent 5ba507bc1c
commit a0fad34a6d
3 changed files with 3 additions and 3 deletions
@@ -201,7 +201,7 @@ export const IdentityProjectAdditionalPrivilegeModifySection = ({
`permissions.${selectedSubject}`, `permissions.${selectedSubject}`,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore-error akhilmhdh: this is because of ts collision with both // @ts-ignore-error akhilmhdh: this is because of ts collision with both
[...rootPolicyValue, ...[]], [...rootPolicyValue, {}],
{ shouldDirty: true, shouldTouch: true } { shouldDirty: true, shouldTouch: true }
); );
} else { } else {
@@ -173,7 +173,7 @@ export const MembershipProjectAdditionalPrivilegeModifySection = ({
`permissions.${selectedSubject}`, `permissions.${selectedSubject}`,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore-error akhilmhdh: this is because of ts collision with both // @ts-ignore-error akhilmhdh: this is because of ts collision with both
[...rootPolicyValue, ...[]], [...rootPolicyValue, {}],
{ shouldDirty: true, shouldTouch: true } { shouldDirty: true, shouldTouch: true }
); );
} else { } else {
@@ -98,7 +98,7 @@ export const RolePermissionsSection = ({ roleSlug, isDisabled }: Props) => {
`permissions.${selectedSubject}`, `permissions.${selectedSubject}`,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore-error akhilmhdh: this is because of ts collision with both // @ts-ignore-error akhilmhdh: this is because of ts collision with both
[...rootPolicyValue, ...[]], [...rootPolicyValue, {}],
{ shouldDirty: true, shouldTouch: true } { shouldDirty: true, shouldTouch: true }
); );
} else { } else {