diff --git a/web/client/components/catalog/Catalog.jsx b/web/client/components/catalog/Catalog.jsx index 74ffb53a8f..c5fa3a90b2 100644 --- a/web/client/components/catalog/Catalog.jsx +++ b/web/client/components/catalog/Catalog.jsx @@ -236,9 +236,9 @@ const Catalog = React.createClass({ setCatalogUrl(e) { this.setState({catalogURL: e.target.value}); }, - handlePage(mouseEvent) { - if (mouseEvent) { - let start = ((mouseEvent - 1) * this.props.pageSize) + 1; + handlePage(eventKey) { + if (eventKey) { + let start = ((eventKey - 1) * this.props.pageSize) + 1; this.props.onSearch(this.props.format, this.getCatalogUrl(), start, this.props.pageSize, this.props.searchOptions.text); this.setState({ loading: true