Skip to content

Commit

Permalink
display rearch result after returning from other tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
erinz2020 committed Feb 6, 2025
1 parent 5b1695e commit 4597ee5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frontend/src/pages/EncounterSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@ export default function EncounterSearch() {
}, [paramsFormFilters]);

useEffect(() => {
if (regularQuery) {
setQueryID("");
} else {
setQueryID(searchParams.get("searchQueryId"));
}
setQueryID(searchParams.get("searchQueryId"));
}, [searchParams]);

const { data: encounterData, loading } = useFilterEncounters({
Expand Down

0 comments on commit 4597ee5

Please sign in to comment.