Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #11407 from brave/zz--11269
Browse files Browse the repository at this point in the history
fix bad tab page preview for the first tab set
  • Loading branch information
luixxiul authored and bsclifton committed Oct 10, 2017
1 parent 0156130 commit 3bdae63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/state/frameStateUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ const getTabPageIndex = (state) => {
const tabPageIndex = state.getIn(['ui', 'tabs', 'tabPageIndex'], 0)
const previewTabPageIndex = state.getIn(['ui', 'tabs', 'previewTabPageIndex'])

return previewTabPageIndex || tabPageIndex
return previewTabPageIndex != null ? previewTabPageIndex : tabPageIndex
}

/**
Expand Down

0 comments on commit 3bdae63

Please sign in to comment.