From a2b91d299ef14ec2ea8c6d595134f94a21c940d5 Mon Sep 17 00:00:00 2001 From: AlasDiablo <25723276+AlasDiablo@users.noreply.github.com> Date: Fri, 15 Dec 2023 08:53:11 +0100 Subject: [PATCH] test (analytics/value): update test --- packages/analytics/src/value.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/analytics/src/value.js b/packages/analytics/src/value.js index 0b109d5e6..c6c95642c 100644 --- a/packages/analytics/src/value.js +++ b/packages/analytics/src/value.js @@ -57,8 +57,8 @@ export default function value(data, feed) { const val = fields .filter((k) => typeof k === 'string') .map((key) => get(data, key)) - .filter((x) => x) - // eslint-disable-next-line no-unexpected-multiline - [0]; + .filter((x) => x !== undefined) + .filter((x) => x !== null)[0]; + feed.send(val); }