Icon List block - When transforming blocks to Icon List block, it causes an error in editor
Closed this issue · 0 comments
andeng1106 commented
Describe the bug
- Issue only happens if there's a Default Icon List block
- Issue happens when transform tries to preview the Icon List
- Error:
Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at ts (https://gambitsandbox.instawp.xyz/andrea/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:102636)
at Nu (https://gambitsandbox.instawp.xyz/andrea/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:63155)
at https://gambitsandbox.instawp.xyz/andrea/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:63014
at s (https://gambitsandbox.instawp.xyz/andrea/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:9:2266)
at c (https://gambitsandbox.instawp.xyz/andrea/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:9:2292)
at https://gambitsandbox.instawp.xyz/andrea/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2:20667
at https://gambitsandbox.instawp.xyz/andrea/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2:18995
at v (https://gambitsandbox.instawp.xyz/andrea/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2:8167)
at https://gambitsandbox.instawp.xyz/andrea/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2:11061
at https://gambitsandbox.instawp.xyz/andrea/wp-includes/js/dist/redux-routine.min.js?ver=a0a172871afaeb261566:9:750
To Reproduce
Steps to reproduce the behavior:
- Add an Icon List block
- Set it as Default Icon List block
- Add any block (e.g. Paragraph block)
- Transform Paragraph block to Icon List
- See if editor encounters an error
Expected behavior
- When there's a Default Icon List block, it should not encounter an error in editor:
- when showing transform preview for Icon List block
- when transforming to Icon List block
Screenshots