From 75a3a4fa60ce7fa233f996a5c137a5b63fbe8cc9 Mon Sep 17 00:00:00 2001 From: Steph Milovic Date: Thu, 25 Feb 2021 09:05:01 -0700 Subject: [PATCH] notes --- .../search_strategy/timeline/factory/events/details/helpers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugins/security_solution/server/search_strategy/timeline/factory/events/details/helpers.ts b/x-pack/plugins/security_solution/server/search_strategy/timeline/factory/events/details/helpers.ts index baa9e0c504dec..a0ec0b77c6422 100644 --- a/x-pack/plugins/security_solution/server/search_strategy/timeline/factory/events/details/helpers.ts +++ b/x-pack/plugins/security_solution/server/search_strategy/timeline/factory/events/details/helpers.ts @@ -111,6 +111,8 @@ export const getDataFromFieldsHits = ( const flat = [...accumulator, ...nestedFields].reduce( (acc, f) => ({ ...acc, + // acc is hashmap to determine if we already have the field or not without an array iteration + // its converted back to array in return with Object.values ...(acc[f.field] != null ? { [f.field]: {