diff --git a/packages/event-normalizer/index.js b/packages/event-normalizer/index.js index 64a44920e..5c8f9c35f 100644 --- a/packages/event-normalizer/index.js +++ b/packages/event-normalizer/index.js @@ -165,10 +165,10 @@ const convertValue = { L: (value) => value.map((item) => convertToNative(item)), M: (value) => Object.entries(value).reduce( - (acc, [key, value]) => ({ - ...acc, - [key]: convertToNative(value) - }), + (acc, [key, value]) => { + acc[key] = convertToNative(value) + return acc + }, {} ), NS: (value) => new Set(value.map(convertValue.N)),