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
fix: move permission mapping to constant to memoize options
Scott Wilson93c74d2bbca5
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsxindex fd002b27e2..65d77d4cf6 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx@@ -134,7 +134,10 @@ const SECRET_ACTION_OPTIONS = [{ action: ProjectPermissionSecretActions.Create, label: "Create" },{ action: ProjectPermissionSecretActions.Edit, label: "Edit" },{ action: ProjectPermissionSecretActions.Delete, label: "Delete" }-] as const;+].map((opt) => ({+ value: opt.action,+ label: opt.label+}));function AddMemberPopover({secretKey,@@ -290,10 +293,7 @@ function AddMemberPopover({onChange={(opts) =>setSelectedActions([...(opts as { value: string; label: string }[])])}- options={SECRET_ACTION_OPTIONS.map((opt) => ({- value: opt.action,- label: opt.label- }))}+ options={SECRET_ACTION_OPTIONS}placeholder="Select permissions..."/></div>