Hi Thiago,
I also had the same observation, and as per my analysis, it's something to do with the underlying defined JS code in the SectionIndex widget implementation.
"Cannot read property 'destroy' of null" - This error has occurred because the underlying js implementation gets failed to initialize the global sectionIndex object. The same undefined object, is getting referred to the block's OnDestroy event handler flow, which resulted in an error.
As a work-around, I would suggest you do the following.
Steps to Follow:
- Define an OnInitalize event handler for the Informacoes screen
- Introduce a JavaScript node with the OnInitialize event handler
- Use the below JS snippet
var reactListDiv = document.querySelector('.list');
if (reactListDiv) {
reactListDiv.remove();
}
See this sample screen: SectionIndexFixDemo
Refer to the attached .oml file
Hope this helps you!
Kind regards,
Benjith Sam