From 91958374fa964d071efb5f9eb07cfa15ecf77780 Mon Sep 17 00:00:00 2001 From: Matteo V Date: Thu, 16 Mar 2017 09:45:33 +0100 Subject: [PATCH] Fixed #1563 catalog pagination (#1568) --- web/client/components/catalog/Catalog.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/client/components/catalog/Catalog.jsx b/web/client/components/catalog/Catalog.jsx index d08acea93c..6a37f27f7f 100644 --- a/web/client/components/catalog/Catalog.jsx +++ b/web/client/components/catalog/Catalog.jsx @@ -235,9 +235,9 @@ const Catalog = React.createClass({ setCatalogUrl(e) { this.setState({catalogURL: e.target.value}); }, - handlePage(mouseEvent, pageEvent) { - if (pageEvent && pageEvent.eventKey !== undefined) { - let start = ((pageEvent.eventKey - 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