Skip to content

Commit

Permalink
UIPFAUTH-87: Use first page Browse query for facet requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis authored and Dmytro-Melnyshyn committed Nov 30, 2023
1 parent 6b217de commit d06bbb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/BrowseView/BrowseView.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const BrowseView = ({
isLoading,
isLoaded,
handleLoadMore,
query,
firstPageQuery,
totalRecords,
} = useAuthoritiesBrowse({
filters,
Expand Down Expand Up @@ -96,7 +96,7 @@ const BrowseView = ({
excludedFilters={excludedFilters}
totalRecords={totalRecords}
searchQuery={searchQuery}
query={query}
query={firstPageQuery}
isLinkingLoading={isLinkingLoading}
isLoaded={isLoaded}
isLoading={isLoading}
Expand Down
1 change: 1 addition & 0 deletions src/views/BrowseView/BrowseView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe('Given BrowseView', () => {
isLoaded: false,
handleLoadMore: mockHandleLoadMore,
query: '(headingRef>="" or headingRef<"") and isTitleHeadingRef==false',
firstPageQuery: '(headingRef>="" or headingRef<"") and isTitleHeadingRef==false',
totalRecords: 0,
});
});
Expand Down

0 comments on commit d06bbb6

Please sign in to comment.