Skip to content

Commit 426a15d

Browse files
committed
Add if-gaurd for show corpus stats
1 parent c01e92f commit 426a15d

File tree

1 file changed

+3
-1
lines changed
  • scattertext/data/viz/scripts

1 file changed

+3
-1
lines changed

scattertext/data/viz/scripts/main.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,9 @@ function buildViz(widthInPixels = 800,
792792
.html(messages.join('<br />'));
793793
};
794794

795-
populateCorpusStats();
795+
if(fullData.docs) {
796+
populateCorpusStats();
797+
}
796798

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

0 commit comments

Comments
 (0)