Skip to content

Commit

Permalink
Merge branch 'alerts-details' of github.com:angorayc/kibana into aler…
Browse files Browse the repository at this point in the history
…ts-details
  • Loading branch information
angorayc committed Dec 12, 2020
2 parents b7d3843 + b5d1ff1 commit f167fae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const timelineEventsDetails: SecuritySolutionTimelineFactory<TimelineEven
response: IEsSearchResponse<unknown>
): Promise<TimelineEventsDetailsStrategyResponse> => {
const { indexName, eventId, docValueFields = [] } = options;
const fieldsData = cloneDeep(response.rawResponse.hits.hits[0].fields ?? {});
const fieldsData = cloneDeep(response.rawResponse.hits.hits[0]?.fields ?? {});
const hitsData = cloneDeep(response.rawResponse.hits.hits[0] ?? {});
delete hitsData._source;
delete hitsData.fields;
Expand Down

0 comments on commit f167fae

Please sign in to comment.