Skip to content

Commit 52a7192

Browse files
committed
Only set current workspace if you're signed in
1 parent 1dcf185 commit 52a7192

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/app/src/app/overmind/onInitialize.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export const onInitialize: OnInitialize = async (
5252

5353
effects.gql.initialize(gqlOptions, () => effects.live.socket);
5454

55-
await actions.internal.setActiveTeamFromUrlOrStore();
55+
if (state.hasLogIn) {
56+
await actions.internal.setActiveTeamFromUrlOrStore();
57+
}
5658

5759
effects.notifications.initialize({
5860
provideSocket() {

0 commit comments

Comments
 (0)