-
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
[RNMobile] Disable regular blocks conversion if the reusable block is empty #50475
Conversation
Deleted blocks doesn't have inner blocks, so we can rely on inner block count to determine if the conversion can happen.
Size Change: 0 B Total Size: 1.38 MB ℹ️ View Unchanged
|
Flaky tests detected in aad7f0e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4927973702
|
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.
I was able to follow all testing steps correctly. LGTM! 🚀
Fixes wordpress-mobile/gutenberg-mobile#5723.
What?
Disables the option for converting to regular blocks a deleted reusable block in order to prevent an exception.
Why?
This PR addresses a crash we have in the app: wordpress-mobile/gutenberg-mobile#5723.
How?
We check the inner blocks count to determine if the conversion option should be displayed.
Testing Instructions
Conversion option is not displayed on deleted reusable blocks
NOTE: The above steps are the same as outlined in the issue being solved: wordpress-mobile/gutenberg-mobile#5723.
Conversion option is displayed for regular reusable blocks
Testing Instructions for Keyboard
N/A
Screenshots or screencast