From 60e56a2e8a498d96b5861123b2bf5c4a647b18ec Mon Sep 17 00:00:00 2001 From: Rickyanto Ang Date: Thu, 5 Dec 2024 11:21:14 -0800 Subject: [PATCH] [8.17] [Cloud Security][Bug] Fix for Page Crashing (#203028) (#203143) # Backport This will backport the following commits from `main` to `8.17`: - [[Cloud Security][Bug] Fix for Page Crashing (#203028)](https://github.com/elastic/kibana/pull/203028) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> --- .../cloud_security_posture/components/entity_insight.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx b/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx index 7139994f7e972..7cb63cec460aa 100644 --- a/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx +++ b/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx @@ -76,7 +76,9 @@ export const EntityInsight = ({ const { items: alertsData } = useAlertsByStatus({ entityFilter, signalIndexName, - queryId: DETECTION_RESPONSE_ALERTS_BY_STATUS_ID, + queryId: isPreviewMode + ? `${DETECTION_RESPONSE_ALERTS_BY_STATUS_ID}ALERTS_PREVIEW_TRUE` + : `${DETECTION_RESPONSE_ALERTS_BY_STATUS_ID}ALERTS_PREVIEW_FALSE`, to, from, });