Skip to content

Commit

Permalink
#23 Remove problematic result generation
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Jan 13, 2021
1 parent 1d68f7e commit b6aecee
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/Search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,10 @@ export default compose(
const {
setSearchQuery,
startLoading,
searchQuery,
allSearchResults,
} = props;

setSearchQuery(newSearchQuery);

const prevQueryAlreadyGaveNoResults = searchQuery
&& newSearchQuery.includes(searchQuery)
&& allSearchResults.length === 0;
if (prevQueryAlreadyGaveNoResults) return;

startLoading();
performQuery(props);
},
Expand Down

1 comment on commit b6aecee

@vercel
Copy link

@vercel vercel bot commented on b6aecee Jan 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.