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

Commit

Permalink
Merge pull request #9589 from evq/fix/link-hover-null-check
Browse files Browse the repository at this point in the history
Add a null check for framePath in WINDOW_SET_LINK_HOVER_PREVIEW
  • Loading branch information
bridiver authored and bsclifton committed Jun 21, 2017
1 parent 5a5915b commit dd1150d
Showing 1 changed file with 10 additions and 5 deletions.
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

0 comments on commit dd1150d

Please sign in to comment.