You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add failsafe code when ACC_ENG_TRACKING is missing from the constants config so that pages where the config is not needed don't break if we remove the configuration entirely.
Steps to Reproduce
When ACC_ENG_TRACKING is missing the page will be broken.
Expected Results
The code doesn't break if the value is not present on the constants file
On the method extractObjectFromArray add a failsafe code to ensure that data is iterable
On the method formatStringToArray add a failsafe code to ensure that inputString is a string (and not undefined)
On the file /scripts/validate-elements.js ensure the code doens't break when TOOLS_CONFIGS is not set on the constants file
Remove all occurrences in all markets where the config is set but empty so the code doesn't break
Actual Results
The code breaks when the configuration is not present on the constants file
The text was updated successfully, but these errors were encountered:
Description
Add failsafe code when ACC_ENG_TRACKING is missing from the constants config so that pages where the config is not needed don't break if we remove the configuration entirely.
Steps to Reproduce
When ACC_ENG_TRACKING is missing the page will be broken.
Expected Results
Actual Results
The code breaks when the configuration is not present on the constants file
The text was updated successfully, but these errors were encountered: