Skip to content

Commit

Permalink
Fixed the redirectbug with deleting a certain workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
vmatsiiako committed Jan 15, 2023
1 parent 1534a47 commit b1f7505
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/components/basic/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default function Layout({ children }: LayoutProps) {
};
putUserInWorkSpace();
onboardingCheck({ setTotalOnboardingActionsDone });
}, []);
}, [router.query.id]);

useEffect(() => {
try {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b1f7505

Please sign in to comment.