Skip to content

Commit

Permalink
Roll back code refactor. Not required.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Sep 12, 2024
1 parent eae8143 commit 07c8388
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
{
Expand Down

0 comments on commit 07c8388

Please sign in to comment.