From b1f7505f304b026ec73d3272f69be31fc3db5d6c Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Sun, 15 Jan 2023 13:31:57 -0800 Subject: [PATCH] Fixed the redirectbug with deleting a certain workspace --- frontend/components/basic/Layout.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/components/basic/Layout.tsx b/frontend/components/basic/Layout.tsx index 7246836bc..76e6076ae 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 ? ( ) : (