Skip to content

Commit

Permalink
fix: prev tab selection
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Apr 12, 2018
1 parent 6374003 commit dbdec7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ const reducer = handleActions(
const count = state.sessions.size
const keys = state.sessions.keySeq()
const index = keys.indexOf(selectedSessionId)
if (index - 1 > 0) {
if (index - 1 >= 0) {
return state.set('selectedSessionId', keys.get(index - 1))
}
return state.set('selectedSessionId', keys.get(count - 1))
Expand Down

0 comments on commit dbdec7a

Please sign in to comment.