Skip to content

Commit

Permalink
[Security Solution][Alerts Detail] - fix missing investigated alert i…
Browse files Browse the repository at this point in the history
…d when fetching all alerts for the details panel alerts tab
  • Loading branch information
PhilippeOberti committed Jan 15, 2025
1 parent 364abf7 commit 74c5958
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ import { useSessionViewPanelContext } from '../context';
export const AlertsTab = memo(() => {
const { eventId, indexName, investigatedAlertId, sessionEntityId, sessionStartTime, scopeId } =
useSessionViewPanelContext();

const {
data: alertsData,
fetchNextPage: fetchNextPageAlerts,
isFetching: isFetchingAlerts,
hasNextPage: hasNextPageAlerts,
} = useFetchSessionViewAlerts(sessionEntityId, sessionStartTime, undefined);
} = useFetchSessionViewAlerts(sessionEntityId, sessionStartTime, investigatedAlertId);

// this code mimics what is being done in the x-pack/plugins/session_view/public/components/session_view/index.tsx file
const alerts = useMemo(() => {
Expand Down

0 comments on commit 74c5958

Please sign in to comment.