Skip to content

Commit

Permalink
Add if-gaurd for show corpus stats
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonKessler committed Mar 13, 2017
1 parent c01e92f commit 426a15d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scattertext/data/viz/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,9 @@ function buildViz(widthInPixels = 800,
.html(messages.join('<br />'));
};

populateCorpusStats();
if(fullData.docs) {
populateCorpusStats();
}

if (saveSvgButton) {
// from http://stackoverflow.com/questions/23218174/how-do-i-save-export-an-svg-file-after-creating-an-svg-with-d3-js-ie-safari-an
Expand Down

0 comments on commit 426a15d

Please sign in to comment.