diff --git a/packages/block-library/src/categories/edit.js b/packages/block-library/src/categories/edit.js index e4ac2e65836b6..9bcfee458f649 100644 --- a/packages/block-library/src/categories/edit.js +++ b/packages/block-library/src/categories/edit.js @@ -150,7 +150,15 @@ export default function CategoriesEdit( { ) } + { ! isRequesting && categories.length === 0 && ( +

+ { __( + 'Your site does not have any posts, so there is nothing to display here at the moment.' + ) } +

+ ) } { ! isRequesting && + categories.length > 0 && ( displayAsDropdown ? renderCategoryDropdown() : renderCategoryList() ) }