klaviyo / SFCC_Klaviyo

Salesforce Commerce Cloud Certified Cartridges for SFRA and Site Genesis
1 stars 9 forks source link

klData.data should be initialized with {}, else next line will throw error #14

Closed justinunilever closed 1 year ago

justinunilever commented 2 years ago

https://github.com/klaviyo/SFCC_Klaviyo/blob/67764a60e47a01d6591688405cef3e0bb93e169e/cartridges/int_klaviyo_sfra/cartridge/scripts/utils/klaviyo/klaviyoDataLayer.js#L23-L24 this should be: klData.data = {}; klData.data.debug_error = '';

cykolln commented 1 year ago

This has been fixed in the new cartridge versions