Skip to content

Commit

Permalink
check for null frame
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Jun 16, 2017
1 parent a36189a commit c1effd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/state/frameStateUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ function getTotalBlocks (frame) {
function isPinned (state, frameKey) {
const frame = getFrameByKey(state, frameKey)

return !!frame.get('pinnedLocation')
return frame && !!frame.get('pinnedLocation')
}

/**
Expand Down

0 comments on commit c1effd9

Please sign in to comment.