Skip to content

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

Fixed the redirectbug with deleting a certain workspace

Vladyslav Matsiiakob1f7505f304b
diff --git a/frontend/components/basic/Layout.tsx b/frontend/components/basic/Layout.tsx
index 7246836bc1..76e6076aef 100644
--- a/frontend/components/basic/Layout.tsx
+++ b/frontend/components/basic/Layout.tsx
@@ -256,7 +256,7 @@ export default function Layout({ children }: LayoutProps) {
};
putUserInWorkSpace();
onboardingCheck({ setTotalOnboardingActionsDone });
- }, []);
+ }, [router.query.id]);
useEffect(() => {
try {
@@ -301,11 +301,10 @@ export default function Layout({ children }: LayoutProps) {
{Object.keys(workspaceMapping).length > 0 ? (
<Listbox
selected={workspaceSelected}
- onChange={setWorkspaceSelected as any}
+ onChange={setWorkspaceSelected}
data={Object.keys(workspaceMapping)}
buttonAction={openModal}
text=""
- // workspaceMapping={workspaceMapping as any}
/>
) : (
<Button