Skip to content

Commit

Permalink
fix(#1281): reload router when switching workspace (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanierh authored Sep 8, 2023
1 parent 4d026f7 commit bfeef0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions front/components/sparkle/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ function NavigationBar({
onWorkspaceUpdate={(workspace) => {
if (workspace.id !== owner.id) {
void router.push(`/w/${workspace.sId}/u/chat`);
void router.reload();
}
}}
/>
Expand Down

0 comments on commit bfeef0f

Please sign in to comment.