-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PageAttributesCheck: Return boolean value directly from the selector #48336
Conversation
Size Change: +2 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in 400e6b7. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4249200433
|
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.
Nice improvement, thanks @Mamaduka 👍
What?
PR updates the selector in the
PageAttributesCheck
component to return theboolean
we use for a check instead of a post-type object.Why?
While it's less likely that post-type objects will be updated in the store, the component only needs to check one supports flag. It's also a good practice to return primitive values when we can.
Testing Instructions
Screenshots or screencast