Skip to content

Commit

Permalink
Fixed #1563 catalog pagination (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored and offtherailz committed Mar 16, 2017
1 parent b3793fe commit 9195837
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 9195837

Please sign in to comment.