Skip to content

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

fix: review changes

Piyush Guptafcb949f4c3d2
diff --git a/frontend/src/hooks/api/users/queries.tsx b/frontend/src/hooks/api/users/queries.tsx
index 7777712aee..88c52ed058 100644
--- a/frontend/src/hooks/api/users/queries.tsx
+++ b/frontend/src/hooks/api/users/queries.tsx
@@ -338,7 +338,7 @@ export const clearSession = (keepQueryClient?: boolean) => {
sessionStorage.removeItem(SessionStorageKeys.CLI_TERMINAL_TOKEN);
if (!keepQueryClient) {
- qc.clear(); // Clear React Query cache
+ qc.invalidateQueries();
}
};
diff --git a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
index 36c4e24600..a3875ba496 100644
--- a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
@@ -249,7 +249,7 @@ export const Navbar = () => {
const isServerAdminPanel = location.pathname.startsWith("/admin");
- const isOrgScope = location.pathname.startsWith("/organization"); // TODO: scott/akhil is this adequate?
+ const isProjectScope = location.pathname.startsWith(`/organizations/${currentOrg.id}/projects`);
const handleOrgNav = async (org: Organization) => {
if (currentOrg?.id === org.id) return;
@@ -314,7 +314,7 @@ export const Navbar = () => {
// TODO(scott): either add badge size/style variant or create designated component for namespace/org nav bar
className={twMerge(
"gap-x-1.5 text-sm",
- (!isOrgScope || isSubOrganization) &&
+ (isProjectScope || isSubOrganization) &&
"bg-transparent text-mineshaft-200 hover:!bg-transparent hover:underline [&>svg]:!text-org"
)}
>
@@ -477,7 +477,7 @@ export const Navbar = () => {
// TODO(scott): either add badge size/style variant or create designated component for namespace/org nav bar
className={twMerge(
"gap-x-1.5 text-sm",
- !isOrgScope &&
+ isProjectScope &&
"min-w-6 bg-transparent text-mineshaft-200 hover:!bg-transparent hover:underline [&>svg]:!text-sub-org"
)}
>
@@ -541,7 +541,7 @@ export const Navbar = () => {
</DropdownMenu>
</>
)}
- {!isOrgScope && (
+ {isProjectScope && (
<>
<p className="pr-3 pl-1 text-lg text-mineshaft-400/70">/</p>
{breadcrumbs ? (