We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b7d3843 + b5d1ff1 commit f167faeCopy full SHA for f167fae
x-pack/plugins/security_solution/server/search_strategy/timeline/factory/events/details/index.ts
@@ -27,7 +27,7 @@ export const timelineEventsDetails: SecuritySolutionTimelineFactory<TimelineEven
27
response: IEsSearchResponse<unknown>
28
): Promise<TimelineEventsDetailsStrategyResponse> => {
29
const { indexName, eventId, docValueFields = [] } = options;
30
- const fieldsData = cloneDeep(response.rawResponse.hits.hits[0].fields ?? {});
+ const fieldsData = cloneDeep(response.rawResponse.hits.hits[0]?.fields ?? {});
31
const hitsData = cloneDeep(response.rawResponse.hits.hits[0] ?? {});
32
delete hitsData._source;
33
delete hitsData.fields;
0 commit comments