Skip to content

Commit

Permalink
per_page is unfortunately required as otherwise we won't get the enti…
Browse files Browse the repository at this point in the history
…re page count to filter
  • Loading branch information
ramonjd committed Sep 11, 2024
1 parent 4dec1ac commit 21dfb4e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const DEFAULT_POST_BASE = {

function useDataViewItemCounts( { postType } ) {
const { records, totalItems } = useEntityRecords( 'postType', postType, {
per_page: -1,
status: [ 'any', 'trash' ],
} );
return useMemo( () => {
Expand Down

0 comments on commit 21dfb4e

Please sign in to comment.