Skip to content

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

fix: display all envs in secrets overview header

Scott Wilson971987c786a7
diff --git a/frontend/src/views/SecretMainPage/SecretMainPage.tsx b/frontend/src/views/SecretMainPage/SecretMainPage.tsx
index d68a66a6b9..20dd42ab9d 100644
--- a/frontend/src/views/SecretMainPage/SecretMainPage.tsx
+++ b/frontend/src/views/SecretMainPage/SecretMainPage.tsx
@@ -267,15 +267,7 @@ export const SecretMainPage = () => {
<NavHeader
pageName={t("dashboard.title")}
currentEnv={environment}
- userAvailableEnvs={currentWorkspace?.environments.filter(({ slug }) =>
- permission.can(
- ProjectPermissionActions.Read,
- subject(ProjectPermissionSub.Secrets, {
- environment: slug,
- secretPath
- })
- )
- )}
+ userAvailableEnvs={currentWorkspace?.environments}
isFolderMode
secretPath={secretPath}
isProjectRelated