Skip to content

Commit

Permalink
Fixed geosolutions-it#1563 catalog pagination (geosolutions-it#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Mar 16, 2017
1 parent 6362863 commit 7dc1d4f
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 @@ -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
Expand Down

0 comments on commit 7dc1d4f

Please sign in to comment.