Skip to content

Commit

Permalink
Search Results | load the results of current tab first before loading…
Browse files Browse the repository at this point in the history
… counts of other
  • Loading branch information
snyaggarwal committed Feb 3, 2023
1 parent bd0d5ec commit abaf464
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/search/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,12 @@ class Search extends React.Component {
window.location.hash = this.getCurrentLayoutURL()
this.onSearchResultsLoad(resource, response, resetItems)
setTimeout(() => this.setState({isURLUpdatedByActionChange: false}), 1000)
if(!noHeaders && facets && !fhir && resource !== 'references')
fetchFacets(_resource, queryParams, baseURL, this.onFacetsLoad)
if(counts && !this.props.nested)
fetchCounts(_resource, queryParams, this.onCountsLoad)
}
)
if(counts && !this.props.nested)
fetchCounts(_resource, queryParams, this.onCountsLoad)
if(!noHeaders && facets && !fhir && resource !== 'references')
fetchFacets(_resource, queryParams, baseURL, this.onFacetsLoad)
})
}

Expand Down

0 comments on commit abaf464

Please sign in to comment.