Skip to content

Commit

Permalink
MaybeCategoryPanel: Update category selector (#42663)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Jul 25, 2022
1 parent 5cca6b6 commit 5d5e97a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ function MaybeCategoryPanel() {
'root',
'site'
)?.default_category;
const defaultCategory = select( coreStore ).getEntityRecords(
const defaultCategory = select( coreStore ).getEntityRecord(
'taxonomy',
'category',
{
id: defaultCategoryId,
}
)?.[ 0 ];
defaultCategoryId
);
const postTypeSupportsCategories =
categoriesTaxonomy &&
some( categoriesTaxonomy.types, ( type ) => type === postType );
Expand Down

0 comments on commit 5d5e97a

Please sign in to comment.