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

Add a null check for framePath in WINDOW_SET_LINK_HOVER_PREVIEW #9589

Merged
merged 1 commit into from
Jun 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions js/stores/windowStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,16 @@ const doAction = (action) => {
break
}
case windowConstants.WINDOW_SET_LINK_HOVER_PREVIEW:
windowState = windowState.mergeIn(frameStateUtil.activeFrameStatePath(windowState), {
hrefPreview: action.href,
showOnRight: action.showOnRight
})
break
{
const framePath = frameStateUtil.activeFrameStatePath(windowState)
if (framePath) {
windowState = windowState.mergeIn(framePath, {
hrefPreview: action.href,
showOnRight: action.showOnRight
})
}
break
}
case windowConstants.WINDOW_SET_THEME_COLOR:
{
const frameKey = action.frameProps.get('key')
Expand Down