From 4cb1930391adb9a41b5035efd75b22e9301d7686 Mon Sep 17 00:00:00 2001 From: Rickyanto Ang Date: Thu, 5 Dec 2024 06:35:42 -0800 Subject: [PATCH] [Cloud Security][Bug] Fix for Page Crashing (#203028) ## Summary This PR is for quick fix to address issue with Page crashing when user clicks on user name or host name on preview flyout for Alerts Contextual Flyout --- .../cloud_security_posture/components/alerts/alerts_preview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/public/cloud_security_posture/components/alerts/alerts_preview.tsx b/x-pack/plugins/security_solution/public/cloud_security_posture/components/alerts/alerts_preview.tsx index 8edd0b7981936..8592ed61abe33 100644 --- a/x-pack/plugins/security_solution/public/cloud_security_posture/components/alerts/alerts_preview.tsx +++ b/x-pack/plugins/security_solution/public/cloud_security_posture/components/alerts/alerts_preview.tsx @@ -93,7 +93,7 @@ export const AlertsPreview = ({ const { goToEntityInsightTab } = useNavigateEntityInsight({ field, value, - queryIdExtension: 'ALERTS_PREVIEW', + queryIdExtension: isPreviewMode ? 'ALERTS_PREVIEW_TRUE' : 'ALERTS_PREVIEW_FALSE', subTab: CspInsightLeftPanelSubTab.ALERTS, }); const link = useMemo(