Skip to content

Commit

Permalink
Bugfix on right-hand-side single search (#188) (#192)
Browse files Browse the repository at this point in the history
(cherry picked from commit 17bba45)

Signed-off-by: Louis Chu <[email protected]>
Co-authored-by: Louis Chu <[email protected]>
  • Loading branch information
github-actions[bot] and noCharger authored Apr 19, 2023
1 parent 2d20099 commit ed0f955
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions public/components/query_compare/search_result/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,15 @@ export const SearchResult = ({ http }: SearchResultProps) => {
body: JSON.stringify(requestBody),
})
.then((res) => {
setQueryResult1(res.result1);
updateComparedResult1(res.result1);
setQueryResult2(res.result2);
updateComparedResult2(res.result2);
if (res.result1) {
setQueryResult1(res.result1);
updateComparedResult1(res.result1);
}

if (res.result2) {
setQueryResult2(res.result2);
updateComparedResult2(res.result2);
}

if (res.errorMessage1) {
setQueryError1({
Expand Down

0 comments on commit ed0f955

Please sign in to comment.