Skip to content

Commit

Permalink
added missing part of rudder element mutation prevent
Browse files Browse the repository at this point in the history
  • Loading branch information
Moumita Mandal committed Nov 1, 2021
1 parent 73f9e55 commit 3c7140f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,8 @@ class Analytics {
succesfulLoadedIntersectClientSuppliedIntegrations.forEach((obj) => {
if (!obj.isFailed || !obj.isFailed()) {
if (obj[type]) {
obj[type](rudderElement);
const clonedRudderElement = cloneDeep(rudderElement);
obj[type](clonedRudderElement);
}
}
});
Expand Down

0 comments on commit 3c7140f

Please sign in to comment.