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: correct display org sidebar check
Scott Wilsonf88d6a183fc4
diff --git a/frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsx b/frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsxindex 8377f7b2d3..bb69e6a626 100644--- a/frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsx+++ b/frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsx@@ -32,16 +32,18 @@ export const OrganizationLayout = () => {const { t } = useTranslation();- const shouldShowOrgSidebar = !(- [- linkOptions({ to: "/organization/secret-manager/overview" }).to,- linkOptions({ to: "/organization/cert-manager/overview" }).to,- linkOptions({ to: "/organization/ssh/overview" }).to,- linkOptions({ to: "/organization/kms/overview" }).to,- linkOptions({ to: "/organization/secret-scanning" }).to,- linkOptions({ to: "/organization/secret-sharing" }).to- ] as string[]- ).includes(location.pathname);+ const shouldShowOrgSidebar =+ location.pathname.startsWith("/organization") &&+ !(+ [+ linkOptions({ to: "/organization/secret-manager/overview" }).to,+ linkOptions({ to: "/organization/cert-manager/overview" }).to,+ linkOptions({ to: "/organization/ssh/overview" }).to,+ linkOptions({ to: "/organization/kms/overview" }).to,+ linkOptions({ to: "/organization/secret-scanning" }).to,+ linkOptions({ to: "/organization/secret-sharing" }).to+ ] as string[]+ ).includes(location.pathname);return (<>