-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Converting Table block within a Group to reusable block causes Gutenberg editor to crash #27243
Comments
Initially I was unable to reproduce this in my dev environment, but then I pulled the latest code from
|
When testing to see if this is a regression in 5.6, I was able to reproduce in both 5.5.3 and 5.6 with the plugin disabled, so maybe not a recent issue. Not sure why I couldn't repro it at first. 🤔 |
For #29055 at least, I wasn't able to reproduce on 5.6. |
I think it seems to happen with any block that has block styles when the sidebar is opened. The steps i'm using to reproduce:
It looks like after the quote block has been removed and made reusable, the sidebar is still momentarily trying to show the block styles for it. The exception happens because the quote block no longer exists. |
#29059 should fix it, but it's an unusual one. |
Describe the bug
Gutenberg editor crashes when converting table within a group to reusable block
Steps to reproduce the behavior:
Expected behavior
Table is converted into a reusable block.
Actual behavior
editor crashes (see stack trace below)
Screenshots
If applicable, add screenshots to help explain your problem.
Editor version (please complete the following information):
Desktop (please complete the following information):
Additional context
Stack trace:
Error: An error occurred while running 'mapSelect': Cannot read property 'name' of null
The error may be correlated with this previous error:
TypeError: Cannot read property 'name' of null
at Object.current (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/block-editor/index.js?ver=fdb8c27842d6665c8f717ab07efd9458:46:2298)
at e (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/data/index.js?ver=152d217f4cbf8a22c88dc20c16e8d8c1:1:28762)
at https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/data/index.js?ver=152d217f4cbf8a22c88dc20c16e8d8c1:1:28927
at https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/data/index.js?ver=152d217f4cbf8a22c88dc20c16e8d8c1:1:23198
at Array.forEach ()
at o (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/data/index.js?ver=152d217f4cbf8a22c88dc20c16e8d8c1:1:23170)
at https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/data/index.js?ver=152d217f4cbf8a22c88dc20c16e8d8c1:1:20382
at p (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/data/index.js?ver=152d217f4cbf8a22c88dc20c16e8d8c1:1:11415)
at https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/redux-routine/index.js?ver=465b7310eb6f6a685e44cf8c6c5ce817:1:9762
at https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/data/index.js?ver=152d217f4cbf8a22c88dc20c16e8d8c1:1:14089
Original stack trace:
at Fe (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/data/index.js?ver=152d217f4cbf8a22c88dc20c16e8d8c1:1:28554)
at Qs (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/build/block-editor/index.js?ver=fdb8c27842d6665c8f717ab07efd9458:46:2160)
at we (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:84:293)
at He (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:97:464)
at zj (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:228:406)
at Th (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:152:223)
at tj (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:152:152)
at Te (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:146:151)
at https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:61:68
at unstable_runWithPriority (https://modern-eagle.jurassic.ninja/wp-content/plugins/gutenberg/vendor/react.min.e713ea3b.js:25:260)
The text was updated successfully, but these errors were encountered: