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 committed Mar 26, 2017
1 parent ecd391c commit 9ef2665
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 @@ -954,7 +954,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

0 comments on commit 9ef2665

Please sign in to comment.