From 18df6076fc38c2f5ab368e8415a5ee531bfde7e0 Mon Sep 17 00:00:00 2001 From: Kyle Gray Date: Fri, 15 Mar 2019 15:00:57 -0400 Subject: [PATCH] fix(analytics-core): added dynamic length of attr key for slicing --- packages/analytics-core/src/analytics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/analytics-core/src/analytics.js b/packages/analytics-core/src/analytics.js index b61f1803f..c869b88f0 100644 --- a/packages/analytics-core/src/analytics.js +++ b/packages/analytics-core/src/analytics.js @@ -92,7 +92,7 @@ export default class AvAnalytics { !isValidEventTypeOnTarget(event); getAnalyticAttrs = elem => { - if(!elem.attributes) { + if (!elem.attributes) { return {}; }