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

Commit

Permalink
Fixes the crash on a fresh profile
Browse files Browse the repository at this point in the history
Issue was introduced with #7861

Auditors: @bsclifton @jonathansampson

Test Plan:
- start browser with a fresh profile
- there shouldn't be any erros or white screen
  • Loading branch information
NejcZdovc authored and bsclifton committed Mar 26, 2017
1 parent 29acdac commit c760a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ class Main extends ImmutableComponent {

const appStateSites = this.props.appState.get('sites')
const activeTabShowingMessageBox = !!(activeTab && activeTab.get('messageBoxDetail'))
const totalBlocks = this.getTotalBlocks(activeFrame)
const totalBlocks = activeFrame ? this.getTotalBlocks(activeFrame) : false

return <div id='window'
className={cx({
Expand Down

1 comment on commit c760a6a

@jonathansampson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Please sign in to comment.