Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Post Author - don't show 0 in inspector controls (#51345)
When user has no access to authors, authors array was empty and when used as `authorOptions.length`, React would render "0". Changing it to a boolean condition ensures that nothing is rendered instead.
- Loading branch information
d921d2a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky tests detected in d921d2a.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5227620890
📝 Reported issues:
specs/editor/plugins/block-variations.test.js