mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-01 06:53:11 +02:00
Fix recent workspaces
This commit is contained in:
@@ -25,7 +25,7 @@ export function useRecentWorkspaces() {
|
|||||||
return [activeWorkspaceId, ...withoutCurrent];
|
return [activeWorkspaceId, ...withoutCurrent];
|
||||||
}).catch(console.error);
|
}).catch(console.error);
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, []);
|
}, [activeWorkspaceId]);
|
||||||
|
|
||||||
const onlyValidIds = useMemo(
|
const onlyValidIds = useMemo(
|
||||||
() => kv.value?.filter((id) => workspaces.some((w) => w.id === id)) ?? [],
|
() => kv.value?.filter((id) => workspaces.some((w) => w.id === id)) ?? [],
|
||||||
|
|||||||
Reference in New Issue
Block a user