diff --git a/src/views/BrowseView/BrowseView.js b/src/views/BrowseView/BrowseView.js index cd03856..5aa1fd2 100644 --- a/src/views/BrowseView/BrowseView.js +++ b/src/views/BrowseView/BrowseView.js @@ -55,7 +55,7 @@ const BrowseView = ({ isLoading, isLoaded, handleLoadMore, - query, + firstPageQuery, totalRecords, } = useAuthoritiesBrowse({ filters, @@ -96,7 +96,7 @@ const BrowseView = ({ excludedFilters={excludedFilters} totalRecords={totalRecords} searchQuery={searchQuery} - query={query} + query={firstPageQuery} isLinkingLoading={isLinkingLoading} isLoaded={isLoaded} isLoading={isLoading} diff --git a/src/views/BrowseView/BrowseView.test.js b/src/views/BrowseView/BrowseView.test.js index c476590..ce7294c 100644 --- a/src/views/BrowseView/BrowseView.test.js +++ b/src/views/BrowseView/BrowseView.test.js @@ -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, }); });