From fe38a575ec9585e4f309b855662a1d1f4029b300 Mon Sep 17 00:00:00 2001 From: Cezar Augusto Date: Mon, 9 Oct 2017 20:43:15 -0300 Subject: [PATCH] fix bad tab page preview for the first tab set fix #11269 Auditors: @luixxiul Test Plan: npm run test -- --grep="tab pages tab page previews hovering over a tab page changes it" --- js/state/frameStateUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/state/frameStateUtil.js b/js/state/frameStateUtil.js index 98b4b8ac273..1b61aab3e14 100644 --- a/js/state/frameStateUtil.js +++ b/js/state/frameStateUtil.js @@ -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 } /**