Skip to content

Commit

Permalink
Search button hit always refetch
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Dec 1, 2020
1 parent e40f17c commit b46a941
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/search/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,7 @@ class Search extends React.Component {
}

onSearch = (value, exactMatch) => {
if(
value !== this.state.searchStr ||
exactMatch !== this.state.exactMatch
)
this.fetchNewResults(
{searchStr: value, page: 1, exactMatch: exactMatch},
true,
true
)
this.fetchNewResults({searchStr: value, page: 1, exactMatch: exactMatch}, true, true)
}

getCurrentResourceTotalResults() {
Expand Down

0 comments on commit b46a941

Please sign in to comment.