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 12, 2024
1 parent 8c528b4 commit 9505589
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 9505589

Please sign in to comment.