Optimize sidebar collapsing

This commit is contained in:
Gregory Schier
2024-12-23 05:05:04 -08:00
parent 61d094d9fd
commit 31f2bff0f6
35 changed files with 402 additions and 238 deletions

View File

@@ -18,7 +18,7 @@ function useActiveWorkspaceId(): string | null {
}
export function getActiveWorkspaceId() {
return jotaiStore.get(activeWorkspaceIdAtom);
return jotaiStore.get(activeWorkspaceIdAtom) ?? null;
}
export function useSubscribeActiveWorkspaceId() {