Skip to content

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

Fixed the bug with wrong project id in local storage

Vladyslav Matsiiakoa3db20cacf09
diff --git a/frontend/components/basic/Layout.tsx b/frontend/components/basic/Layout.tsx
index d539fce3f3..de58a90fab 100644
--- a/frontend/components/basic/Layout.tsx
+++ b/frontend/components/basic/Layout.tsx
@@ -212,7 +212,12 @@ export default function Layout({ children }: LayoutProps) {
.split("/")
[router.asPath.split("/").length - 1].split("?")[0];
- localStorage.setItem("projectData.id", intendedWorkspaceId);
+ if (
+ !["heroku", "vercel", "github", "netlify"].includes(intendedWorkspaceId)
+ ) {
+ localStorage.setItem("projectData.id", intendedWorkspaceId);
+ }
+
// If a user is not a member of a workspace they are trying to access, just push them to one of theirs
if (
!["heroku", "vercel", "github", "netlify"].includes(intendedWorkspaceId) &&