Skip to content

Commit

Permalink
fixed geosolutions-it#1563 catalog pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Mar 15, 2017
1 parent cd1c9db commit 0802745
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/client/components/catalog/Catalog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,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(mouseEvent) {
if (mouseEvent) {
let start = ((mouseEvent - 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
Expand Down

0 comments on commit 0802745

Please sign in to comment.