mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-14 12:43:42 +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];
|
||||
}).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)) ?? [],
|
||||
|
||||
Reference in new issue
Block a user