Skip to content

Commit

Permalink
Update useSearch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Aug 12, 2022
1 parent f1a7486 commit 8978450
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taxonium_web_client/src/hooks/useSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ const useSearch = ({
let relevant = [];
if (index == -1) {
searchSpec.forEach((value) =>
if(searchResults[value.key]){
{ if(searchResults[value.key]){
relevant.push(...searchResults[searchSpec[index].key])
}
}
);
} else {
relevant = searchResults[searchSpec[index].key];
Expand Down

0 comments on commit 8978450

Please sign in to comment.