From 8dff87c5554770c3cadf9824313963b243ab9f46 Mon Sep 17 00:00:00 2001 From: Ryan Noelk Date: Sat, 21 Apr 2018 16:46:51 -0400 Subject: [PATCH] Be sure to delete the offset if we are doing a search (#10) --- modules/browse/containers/Browse.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/browse/containers/Browse.js b/modules/browse/containers/Browse.js index 7127d45b..2ae22f74 100644 --- a/modules/browse/containers/Browse.js +++ b/modules/browse/containers/Browse.js @@ -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/';