Skip to content

Commit

Permalink
fix summary alert details (elastic#90657)
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Feb 8, 2021
1 parent 8e5ccbf commit d9aa0a5
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 88 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 d9aa0a5

Please sign in to comment.