diff --git a/lib/manager/components/reporter/components/RouteLayout.js b/lib/manager/components/reporter/components/RouteLayout.js index bddb84c1c..865b1ead7 100644 --- a/lib/manager/components/reporter/components/RouteLayout.js +++ b/lib/manager/components/reporter/components/RouteLayout.js @@ -57,8 +57,9 @@ export default class RouteLayout extends Component { fetchRouteDetails(version.namespace) } - _onPaginationSelect = (value: number) => { + _onPaginationSelect = (e: SyntheticMouseEvent) => { const {routeOffsetChange, version} = this.props + const value = +e.currentTarget.textContent routeOffsetChange({ namespace: version.namespace, offset: (value - 1) * PAGE_SIZE @@ -109,7 +110,7 @@ export default class RouteLayout extends Component { this._onPaginationSelect(+e.target.text)} + onClick={this._onPaginationSelect} > {pageNum}