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

Commit

Permalink
fix bad tab page preview for the first tab set
Browse files Browse the repository at this point in the history
fix #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 committed Oct 9, 2017
1 parent 2cf81bd commit fe38a57
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 fe38a57

Please sign in to comment.