Skip to content

Commit

Permalink
[Osquery] Add optional chaining to prevent ui error (#133595)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsonpl authored Jun 7, 2022
1 parent 3db12eb commit f1e4c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/osquery/public/results/results_table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ const ResultsTableComponent: React.FC<ResultsTableComponentProps> = ({
const { visibleRowIndex } = actionProps as EuiDataGridCellValueElementProps & {
visibleRowIndex: number;
};
const eventId = data[visibleRowIndex]._id;
const eventId = data[visibleRowIndex]?._id;

return addToTimeline({ query: ['_id', eventId], isIcon: true });
},
Expand Down

0 comments on commit f1e4c0c

Please sign in to comment.