Skip to content

Commit

Permalink
[7.x] fix summary alert details (elastic#90657) (elastic#90684)
Browse files Browse the repository at this point in the history
* fix summary alert details (elastic#90657)

* update expected data

Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
  • Loading branch information
XavierM and angorayc authored Feb 9, 2021
1 parent 735d9a9 commit 56ae5c5
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,8 @@ export const getDataFromSourceHits = (
{
category: fieldCategory,
field,
values: Array.isArray(item)
? item.map((value) => {
if (isObject(value)) {
return JSON.stringify(value);
}

return value;
})
: [item],
originalValue: item,
values: toStringArray(item),
originalValue: toStringArray(item),
} as TimelineEventsDetailsItem,
];
} else if (isObject(item)) {
Expand Down
Loading

0 comments on commit 56ae5c5

Please sign in to comment.