Skip to content

Commit 539389b

Browse files
cezaraugustosyuan100
authored andcommitted
fix bad tab page preview for the first tab set
fix brave#11269 Auditors: @luixxiul Test Plan: npm run test -- --grep="tab pages tab page previews hovering over a tab page changes it"
1 parent c4d0988 commit 539389b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/state/frameStateUtil.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ const getTabPageIndex = (state) => {
487487
const tabPageIndex = state.getIn(['ui', 'tabs', 'tabPageIndex'], 0)
488488
const previewTabPageIndex = state.getIn(['ui', 'tabs', 'previewTabPageIndex'])
489489

490-
return previewTabPageIndex || tabPageIndex
490+
return previewTabPageIndex != null ? previewTabPageIndex : tabPageIndex
491491
}
492492

493493
/**

0 commit comments

Comments
 (0)