We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb256a commit 6496fc2Copy full SHA for 6496fc2
src/analytics.js
@@ -122,6 +122,7 @@ const getMetrics = (extra = {}) =>
122
...carry,
123
[name]: Number(typeof value === 'function' ? value() : value),
124
}), {});
125
+const overwriteMerge = (destinationArray, sourceArray) => sourceArray;
126
127
/**
128
* Initialise cognito services.
@@ -273,7 +274,9 @@ const Analytics = {
273
274
}
275
276
// Merge new endpoint data with defaults.
- endpoint = merge.all([EndpointData, Existing, endpoint]);
277
+ endpoint = merge.all([EndpointData, Existing, endpoint], {
278
+ arrayMerge: overwriteMerge
279
+ });
280
281
// Store the endpoint data.
282
Analytics.setEndpoint(endpoint);
0 commit comments