Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1703 | saving duplicate calls
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jan 4, 2024
1 parent ce85917 commit cb5ffaa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/search/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ const Search = props => {
const isFilterable = _resource => FILTERABLE_RESOURCES.includes(_resource)

React.useEffect(() => {
setQueryParamsInState(true)
if(!props.url)
setQueryParamsInState(true)
}, [])

React.useEffect(() => {
setQueryParamsInState(true)
if(props.url)
setQueryParamsInState(true)
}, [props.url])

React.useEffect(() => {
Expand Down

0 comments on commit cb5ffaa

Please sign in to comment.