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 2d961f3 commit 1b44407Copy full SHA for 1b44407
packages/graphql-playground-react/src/state/sessions/reducers.ts
@@ -367,7 +367,7 @@ const reducer = handleActions(
367
.set('sessionCount', newState.sessions.size)
368
},
369
NEW_SESSION: (state, { payload: { reuseHeaders, endpoint } }) => {
370
- let session = makeSession(endpoint)
+ let session = makeSession(endpoint || state.sessions.first().endpoint)
371
if (reuseHeaders) {
372
const selectedSessionId = getSelectedSessionId(state)
373
const currentSession = state.sessions.get(selectedSessionId)
0 commit comments