From 21dfb4e1dadbf1dac35bf8c76e84367ec186e911 Mon Sep 17 00:00:00 2001 From: ramon Date: Wed, 11 Sep 2024 13:14:49 +1000 Subject: [PATCH] per_page is unfortunately required as otherwise we won't get the entire page count to filter --- .../edit-site/src/components/sidebar-dataviews/default-views.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/edit-site/src/components/sidebar-dataviews/default-views.js b/packages/edit-site/src/components/sidebar-dataviews/default-views.js index 9dbe790e999237..0a9debe7631e4f 100644 --- a/packages/edit-site/src/components/sidebar-dataviews/default-views.js +++ b/packages/edit-site/src/components/sidebar-dataviews/default-views.js @@ -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( () => {