Closed emeaguiar closed 1 month ago
When editing any post, if a pattern is edited, the following notice is displayed:
Cannot read properties of undefined (reading 'length')
When editing a pattern, some variables are not retrieving the correct meta data, and instead they are being returned as undefined
undefined
https://github.com/alleyinteractive/apple-news/assets/1379732/865714e0-461f-4648-b5cf-cf7f9571eb1d
https://github.com/alleyinteractive/apple-news/assets/1379732/2ccc07b8-5106-4b47-92a5-4c5e3eb10471
Is this happening due to being undefined (instead of null) here:
null
https://github.com/alleyinteractive/apple-news/blob/fcf53754010955514c7d7c8a998d27e45ab9893d/assets/js/pluginsidebar/sidebar.jsx#L188
The fix for this will be part of the upcoming v2.5.0 release.
Description of the bug
When editing any post, if a pattern is edited, the following notice is displayed:
Steps To Reproduce
Additional Information
When editing a pattern, some variables are not retrieving the correct meta data, and instead they are being returned as
undefined
Demo of the notice appearing
https://github.com/alleyinteractive/apple-news/assets/1379732/865714e0-461f-4648-b5cf-cf7f9571eb1d
Trace of error
https://github.com/alleyinteractive/apple-news/assets/1379732/2ccc07b8-5106-4b47-92a5-4c5e3eb10471