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 842bc14376ff36..e739c544bd0d7b 100644 --- a/packages/edit-site/src/components/sidebar-dataviews/default-views.js +++ b/packages/edit-site/src/components/sidebar-dataviews/default-views.js @@ -111,10 +111,12 @@ export function useDefaultViewsWithItemCounts( { postType } ) { export function useDefaultViews( { postType } ) { const labels = useSelect( - ( select ) => select( coreStore ).getPostType( postType )?.labels, + ( select ) => { + const { getPostType } = select( coreStore ); + return getPostType( postType )?.labels; + }, [ postType ] ); - return useMemo( () => { return [ {