Skip to content

Commit

Permalink
Be sure to delete the offset if we are doing a search (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanNoelk authored Apr 21, 2018
1 parent de899dd commit 8dff87c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/browse/containers/Browse.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class Browse extends React.Component {

doSearch = (value) => {
let qs = queryString.parse(this.props.location.search);
delete qs['offset'];
value !== "" ? qs['search'] = value : delete qs['search'];
let str = queryString.stringify(qs);
str = str ? '/browse/?' + str : '/browse/';
Expand Down

0 comments on commit 8dff87c

Please sign in to comment.