diff --git a/x-pack/plugins/security_solution/public/resolver/data_access_layer/mocks/one_node_with_paginated_related_events.ts b/x-pack/plugins/security_solution/public/resolver/data_access_layer/mocks/one_node_with_paginated_related_events.ts index 12eb98f47f3a5..2b4e58d57730e 100644 --- a/x-pack/plugins/security_solution/public/resolver/data_access_layer/mocks/one_node_with_paginated_related_events.ts +++ b/x-pack/plugins/security_solution/public/resolver/data_access_layer/mocks/one_node_with_paginated_related_events.ts @@ -76,7 +76,7 @@ export function oneNodeWithPaginatedEvents(): { if (after === undefined) { events = eventsOfCategory.slice(0, relatedEventsPaginationSize); } else { - events = eventsOfCategory.slice(relatedEventsPaginationSize - 1); + events = eventsOfCategory.slice(relatedEventsPaginationSize); } return { events, diff --git a/x-pack/plugins/security_solution/public/resolver/store/data/selectors.ts b/x-pack/plugins/security_solution/public/resolver/store/data/selectors.ts index 494e7f3b7614f..cb0b45e8eb7d4 100644 --- a/x-pack/plugins/security_solution/public/resolver/store/data/selectors.ts +++ b/x-pack/plugins/security_solution/public/resolver/store/data/selectors.ts @@ -729,7 +729,7 @@ export const isLoadingMoreNodeEventsInCategory = createSelector( return ( nodeEventsInCategory && nodeEventsInCategory.lastCursorRequested !== null && - nodeEventsInCategory.cursor !== nodeEventsInCategory.lastCursorRequested + nodeEventsInCategory.cursor === nodeEventsInCategory.lastCursorRequested ); } else { return false; diff --git a/x-pack/plugins/security_solution/public/resolver/view/panels/node_events_of_type.test.tsx b/x-pack/plugins/security_solution/public/resolver/view/panels/node_events_of_type.test.tsx index 13da85b0756cc..28e4aa6183e8d 100644 --- a/x-pack/plugins/security_solution/public/resolver/view/panels/node_events_of_type.test.tsx +++ b/x-pack/plugins/security_solution/public/resolver/view/panels/node_events_of_type.test.tsx @@ -89,7 +89,7 @@ describe(`Resolver: when analyzing a tree with only the origin and paginated rel () => simulator().testSubject('resolver:panel:node-events-in-category:event-link').length ) - ).toYieldEqualTo(31); + ).toYieldEqualTo(30); }); }); });