- Issue created by @wstocker
- Status changed to Needs review
10 months ago 5:51pm 11 March 2024 - last update
10 months ago 73 pass
D10 settings are not getting attached to JS when all alerts are disabled.
Error is: Uncaught TypeError: Cannot read properties of undefined (reading 'workaround_needed')
I have several disabled site alerts.
When I create a landing page and set it to unpublished on the view page I see this error in the console:
Uncaught TypeError: Cannot read properties of undefined (reading 'workaround_needed')
Add a check in site_alert.js to ensure that drupalSettings exists and that drupalSettings.siteAlert exits before attempting to access properties.
Needs review
1.3
Code