diff --git a/js/components/main.js b/js/components/main.js index d9fe92eed16..6a59c175c94 100644 --- a/js/components/main.js +++ b/js/components/main.js @@ -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