wingbot 3.67.26 → 3.67.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -275,7 +275,7 @@ function onInteractionHandler (
|
|
|
275
275
|
req,
|
|
276
276
|
actions,
|
|
277
277
|
lastAction,
|
|
278
|
-
|
|
278
|
+
state,
|
|
279
279
|
// data,
|
|
280
280
|
skill,
|
|
281
281
|
prevSkill,
|
|
@@ -305,14 +305,14 @@ function onInteractionHandler (
|
|
|
305
305
|
lang,
|
|
306
306
|
[pagePathVar]: pagePath,
|
|
307
307
|
[userAgentVar]: userAgent
|
|
308
|
-
} =
|
|
308
|
+
} = state;
|
|
309
309
|
|
|
310
310
|
const customDimensions = {};
|
|
311
311
|
for (let i = 1; i <= 8; i++) {
|
|
312
312
|
const k = `cd${i}`;
|
|
313
|
-
if (!['undefined', 'object'].includes(typeof
|
|
313
|
+
if (!['undefined', 'object'].includes(typeof state[k])) {
|
|
314
314
|
Object.assign(customDimensions, {
|
|
315
|
-
[k]:
|
|
315
|
+
[k]: state[k]
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
}
|