Skip to content

Commit

Permalink
fix bad tab page preview for the first tab set
Browse files Browse the repository at this point in the history
fix brave#11269
Auditors: @luixxiul
Test Plan:
npm run test -- --grep="tab pages tab page previews hovering over a tab page changes it"
  • Loading branch information
cezaraugusto authored and syuan100 committed Nov 9, 2017
1 parent c4d0988 commit 539389b
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 539389b

Please sign in to comment.