diff --git a/src/v0/destinations/tune/transform.js b/src/v0/destinations/tune/transform.js index f7725a76e5..97dad0e3d3 100644 --- a/src/v0/destinations/tune/transform.js +++ b/src/v0/destinations/tune/transform.js @@ -13,7 +13,7 @@ const mapPropertiesWithNestedSupport = (msg, properties, mappings) => { Object.entries(mappings).forEach(([key, value]) => { const keyStr = `${key}`; const args = { object: properties, key: keyStr }; - if (key.split('.').length > 1) { + if (args.key.split('.').length > 1) { // Handle nested keys args.object = msg; // This line modifies the object property of args }