Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 12, 2022
1 parent 8978450 commit a8df776
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions taxonium_web_client/src/hooks/useSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,11 @@ const useSearch = ({
const { index } = zoomToSearch;
let relevant = [];
if (index == -1) {
searchSpec.forEach((value) =>
{ if(searchResults[value.key]){
relevant.push(...searchResults[searchSpec[index].key])
}
}
);
searchSpec.forEach((value) => {
if (searchResults[value.key]) {
relevant.push(...searchResults[searchSpec[index].key]);
}
});
} else {
relevant = searchResults[searchSpec[index].key];
}
Expand Down

0 comments on commit a8df776

Please sign in to comment.