Skip to content

Commit

Permalink
Update utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 authored Dec 22, 2023
1 parent 4c26720 commit c0ac98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v0/destinations/am/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const getEventId = (payload, sourceKey) => {
const getUnsetObj = (message) => {
const fieldsToUnset = get(message, 'integrations.Amplitude.fieldsToUnset');
let unsetObject;
if (fieldsToUnset && Array.isArray(fieldsToUnset)) {
if (Array.isArray(fieldsToUnset)) {
unsetObject = Object.fromEntries(fieldsToUnset.map((field) => [field, '-']));
}

Expand Down

0 comments on commit c0ac98d

Please sign in to comment.