From 27cf4e925fa0091af6c8b0d67fefb32658f991ea Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 10 Mar 2024 17:42:25 -0700 Subject: [PATCH] Fix recent workspaces --- src-web/hooks/useRecentWorkspaces.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-web/hooks/useRecentWorkspaces.ts b/src-web/hooks/useRecentWorkspaces.ts index 23d7e17c..17fedf08 100644 --- a/src-web/hooks/useRecentWorkspaces.ts +++ b/src-web/hooks/useRecentWorkspaces.ts @@ -25,7 +25,7 @@ export function useRecentWorkspaces() { return [activeWorkspaceId, ...withoutCurrent]; }).catch(console.error); // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + }, [activeWorkspaceId]); const onlyValidIds = useMemo( () => kv.value?.filter((id) => workspaces.some((w) => w.id === id)) ?? [],