Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat(rbac): removed unused variables
Akhil Mohanb023bb1df261
diff --git a/frontend/src/views/Org/MembersPage/components/OrgRoleTabSection/OrgRoleTable.tsx b/frontend/src/views/Org/MembersPage/components/OrgRoleTabSection/OrgRoleTable.tsxindex 6d0c962f76..dbd4331bf5 100644--- a/frontend/src/views/Org/MembersPage/components/OrgRoleTabSection/OrgRoleTable.tsx+++ b/frontend/src/views/Org/MembersPage/components/OrgRoleTabSection/OrgRoleTable.tsx@@ -1,7 +1,6 @@import { useState } from "react";import { faEdit, faMagnifyingGlass, faPlus, faTrash } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { format } from "date-fns";import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";import { OrgPermissionCan } from "@app/components/permissions";@@ -90,7 +89,7 @@ export const OrgRoleTable = ({ isRolesLoading, roles = [], onSelectRole }: Props<TBody>{isRolesLoading && <TableSkeleton columns={4} innerKey="org-roles" />}{roles?.map((role) => {- const { _id: id, name, createdAt, slug } = role;+ const { _id: id, name, slug } = role;const isNonMutatable = ["owner", "admin", "member"].includes(slug);return (diff --git a/frontend/src/views/Project/MembersPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx b/frontend/src/views/Project/MembersPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsxindex 51850017e2..ce0b42385c 100644--- a/frontend/src/views/Project/MembersPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx+++ b/frontend/src/views/Project/MembersPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx@@ -1,7 +1,6 @@import { useState } from "react";import { faEdit, faMagnifyingGlass, faPlus, faTrash } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { format } from "date-fns";import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";import { ProjectPermissionCan } from "@app/components/permissions";@@ -99,7 +98,7 @@ export const ProjectRoleList = ({ isRolesLoading, roles = [], onSelectRole }: Pr<TBody>{isRolesLoading && <TableSkeleton columns={4} innerKey="org-roles" />}{roles?.map((role) => {- const { _id: id, name, createdAt, slug } = role;+ const { _id: id, name, slug } = role;const isNonMutatable = ["admin", "member", "viewer"].includes(slug);return (