From 950558977a7a8d5d53d55cd588c870c25bca7097 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 9dbe790e99923..0a9debe7631e4 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( () => {