Skip to content

Commit

Permalink
fix: Local state changes on workspace switch
Browse files Browse the repository at this point in the history
  • Loading branch information
areknawo committed Feb 6, 2024
1 parent 8e6426b commit 3878d6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/src/views/workspaces/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ const WorkspacesView: Component = () => {
if (currentWorkspaceId() !== workspaceId) {
await client.auth.switchWorkspace.mutate({ workspaceId });
setStorage((storage) => ({
sidePanelWidth: storage.sidePanelWidth
...storage,
activeContentGroupId: undefined,
activeVariantId: undefined,
expandedContentLevels: [],
sourceControlConfiguredProvider: undefined
}));
}

Expand Down

0 comments on commit 3878d6f

Please sign in to comment.