Skip to content

Commit

Permalink
[SIEM] [Case] Insert timeline bugfix and limit 25 cases (#60136)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic authored Mar 13, 2020
1 parent 35302ed commit 98c529f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,20 @@ const InsertTimelinePopoverComponent: React.FC<InsertTimelinePopoverProps> = ({

const handleGetSelectableOptions = useCallback(
({ timelines }) => [
...timelines
.filter((t: OpenTimelineResult) => !hideUntitled || t.title !== '')
.map(
(t: OpenTimelineResult, index: number) =>
({
description: t.description,
favorite: t.favorite,
label: t.title,
id: t.savedObjectId,
key: `${t.title}-${index}`,
title: t.title,
checked: undefined,
} as EuiSelectableOption)
),
...timelines.map(
(t: OpenTimelineResult, index: number) =>
({
description: t.description,
favorite: t.favorite,
label: t.title,
id: t.savedObjectId,
key: `${t.title}-${index}`,
title: t.title,
checked: undefined,
} as EuiSelectableOption)
),
],
[hideUntitled]
[]
);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export const AllCases = React.memo(() => {
pageIndex: queryParams.page - 1,
pageSize: queryParams.perPage,
totalItemCount: data.total,
pageSizeOptions: [5, 10, 20, 50, 100, 200, 300],
pageSizeOptions: [5, 10, 15, 20, 25],
}),
[data, queryParams]
);
Expand Down

This file was deleted.

0 comments on commit 98c529f

Please sign in to comment.