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 6374003 commit dbdec7aCopy full SHA for dbdec7a
packages/graphql-playground-react/src/state/sessions/reducers.ts
@@ -487,7 +487,7 @@ const reducer = handleActions(
487
const count = state.sessions.size
488
const keys = state.sessions.keySeq()
489
const index = keys.indexOf(selectedSessionId)
490
- if (index - 1 > 0) {
+ if (index - 1 >= 0) {
491
return state.set('selectedSessionId', keys.get(index - 1))
492
}
493
return state.set('selectedSessionId', keys.get(count - 1))
0 commit comments