diff --git a/assets/js/components/Pageviews.js b/assets/js/components/Pageviews.js index f34ebb3..b807912 100644 --- a/assets/js/components/Pageviews.js +++ b/assets/js/components/Pageviews.js @@ -40,14 +40,14 @@ class Pageviews extends Component { render() { const loadingOverlay = this.state.loading ?
: ''; - const tableRows = this.state.records.map( (p, i) => ( + const tableRows = this.state.records !== null ? this.state.records.map( (p, i) => ( {i+1} {p.Path.substring(0, 50)}{p.Path.length > 50 ? '..' : ''} {numbers.formatWithComma(p.Count)} {numbers.formatWithComma(p.CountUnique)} - )); + )) : Nothing here, yet..;; return (
diff --git a/assets/js/components/Table.js b/assets/js/components/Table.js index fc948a3..e5b3267 100644 --- a/assets/js/components/Table.js +++ b/assets/js/components/Table.js @@ -58,7 +58,7 @@ class Table extends Component { } render() { - const tableRows = this.state.records.length > 0 ? this.state.records.map((p, i) => ( + const tableRows = this.state.records !== null ? this.state.records.map((p, i) => ( {i+1} {this.labelCell(p)}