Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

improvement: fix variable name

Scott Wilson4e6ebcc8d9b0
diff --git a/frontend/src/views/Project/IdentityDetailsPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx b/frontend/src/views/Project/IdentityDetailsPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx
index 43a27d9d00..883e24dcdc 100644
--- a/frontend/src/views/Project/IdentityDetailsPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx
+++ b/frontend/src/views/Project/IdentityDetailsPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx
@@ -44,7 +44,7 @@ export const IdentityProjectAdditionalPrivilegeSection = ({ identityMembershipDe
const { mutateAsync: deletePrivilege } = useDeleteIdentityProjectAdditionalPrivilege();
- const { data: userProjectPrivileges, isLoading } = useListIdentityProjectPrivileges({
+ const { data: identityProjectPrivileges, isLoading } = useListIdentityProjectPrivileges({
identityId: identityMembershipDetails?.identity?.id,
projectId: identityMembershipDetails?.project?.id
});
@@ -137,7 +137,7 @@ export const IdentityProjectAdditionalPrivilegeSection = ({ identityMembershipDe
<TableSkeleton columns={3} innerKey="user-project-identity-memberships" />
)}
{!isLoading &&
- userProjectPrivileges?.map((privilegeDetails) => {
+ identityProjectPrivileges?.map((privilegeDetails) => {
const isTemporary = privilegeDetails?.isTemporary;
const isExpired =
privilegeDetails.isTemporary &&
@@ -226,7 +226,7 @@ export const IdentityProjectAdditionalPrivilegeSection = ({ identityMembershipDe
})}
</TBody>
</Table>
- {!isLoading && !userProjectPrivileges?.length && (
+ {!isLoading && !identityProjectPrivileges?.length && (
<EmptyState title="This identity has no additional privileges" icon={faFolder} />
)}
</TableContainer>