Skip to content

Commit dbdec7a

Browse files
committed
fix: prev tab selection
1 parent 6374003 commit dbdec7a

File tree

1 file changed

+1
-1
lines changed
  • packages/graphql-playground-react/src/state/sessions

1 file changed

+1
-1
lines changed

packages/graphql-playground-react/src/state/sessions/reducers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ const reducer = handleActions(
487487
const count = state.sessions.size
488488
const keys = state.sessions.keySeq()
489489
const index = keys.indexOf(selectedSessionId)
490-
if (index - 1 > 0) {
490+
if (index - 1 >= 0) {
491491
return state.set('selectedSessionId', keys.get(index - 1))
492492
}
493493
return state.set('selectedSessionId', keys.get(count - 1))

0 commit comments

Comments
 (0)