Skip to content

Commit

Permalink
[Osquery] Fix pagination issue on Alert's Osquery Flyout (elastic#132611
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tomsonpl authored May 20, 2022
1 parent 2e51140 commit 7c37eda
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions x-pack/plugins/osquery/public/results/results_table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,11 @@ const ResultsTableComponent: React.FC<ResultsTableComponentProps> = ({
id: 'timeline',
width: 38,
headerCellRender: () => null,
rowCellRender: (actionProps: EuiDataGridCellValueElementProps) => {
const eventId = data[actionProps.rowIndex]._id;
rowCellRender: (actionProps) => {
const { visibleRowIndex } = actionProps as EuiDataGridCellValueElementProps & {
visibleRowIndex: number;
};
const eventId = data[visibleRowIndex]._id;

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

0 comments on commit 7c37eda

Please sign in to comment.