mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-01 12:34:06 +01:00
Fix recent workspaces
This commit is contained in:
1 parent
6b239c4e3f
commit
27cf4e925f
1 file changed
+1
-1
@@ -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