diff --git a/src/visits/ShortUrlVisits.js b/src/visits/ShortUrlVisits.js
index 0d880d9f..820956d3 100644
--- a/src/visits/ShortUrlVisits.js
+++ b/src/visits/ShortUrlVisits.js
@@ -94,7 +94,7 @@ const ShortUrlVisits = ({ processStatsFromVisits }) => class ShortUrlVisits exte
{title}
@@ -107,14 +109,14 @@ export default class SortableBarGraph extends React.Component {
onChange={(orderField, orderDir) => this.setState({ orderField, orderDir, currentPage: 1 })}
/>
- {supportPagination && (
+ {withPagination && keys(stats).length > 50 && (
{
- this.redraw = true;
+ this.redrawChart = true;
this.setState({ itemsPerPage, currentPage: 1 });
}}
/>
@@ -123,7 +125,6 @@ export default class SortableBarGraph extends React.Component {
{extraHeaderContent && {extraHeaderContent}
}
);
- const { currentPageStats, pagination, max } = this.determineStats(stats, sortingItems);
return (
);
}