We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c94247 commit 01388fdCopy full SHA for 01388fd
packages/app/src/app/components/WorkspaceSetup/steps/Create.tsx
@@ -214,8 +214,11 @@ const JoinWorkspace: React.FC<{
214
effects.gql.queries
215
.getEligibleWorkspaces({})
216
.then(result => {
217
- onDidFindWorkspace();
218
- setEligibleWorkspace(result.me.eligibleWorkspaces[0]);
+ const hasEligibleWorkspace = result.me.eligibleWorkspaces.length > 0;
+ if (hasEligibleWorkspace) {
219
+ onDidFindWorkspace();
220
+ setEligibleWorkspace(result.me.eligibleWorkspaces[0]);
221
+ }
222
})
223
.catch(e => {})
224
.finally(() => {
0 commit comments