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

Commit 2c64f2a

Browse files
committed
Check for empty frame when window state isn't updated yet
Fix #10749 I don't think I can add a test for this since it's so unfrequent but it will go away once we get rid of frame state
1 parent f222f23 commit 2c64f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/stores/windowStore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const newFrame = (state, frameOpts) => {
159159
const tabId = frameOpts.tabId
160160
const frame = frameStateUtil.getFrameByTabId(state, tabId)
161161
state = frameStateUtil.updateTabPageIndex(state, tabId)
162-
if (active) {
162+
if (active && frame) {
163163
// only set the activeFrameKey if the tab is already active
164164
state = state.set('activeFrameKey', frame.get('key'))
165165
} else {

0 commit comments

Comments
 (0)