Skip to content

Commit

Permalink
replace only the null or undefined value in payload
Browse files Browse the repository at this point in the history
  • Loading branch information
prabrisha-rudder committed Oct 9, 2019
1 parent db451ce commit 9819390
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions rudder-client-javascript/analytics/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ class Analytics {
this.toBeProcessedByIntegrationArray.forEach(event => {
let methodName = event[0];
event.shift();
console.log(this.clientIntegrationObjects[i].name);
console.log("event: ", ...event);
let integrationOptions = event[0].message.integrations;
for (let i = 0; i < this.clientIntegrationObjects.length; i++) {
if (
Expand Down
2 changes: 1 addition & 1 deletion rudder-client-javascript/analytics/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as XMLHttpRequestNode from "Xmlhttprequest";
* @returns
*/
function replacer(key, value) {
if (!value || value === "") {
if (value === null || value === undefined) {
return undefined;
} else {
return value;
Expand Down

0 comments on commit 9819390

Please sign in to comment.