From 67f0f33fb66564aca25eaaa03746a52f20879b10 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 30 Aug 2023 10:27:04 -0400 Subject: [PATCH] [8.10] [Cloud Security] Fix first item flyout wont open in vuln table (#165214) (#165236) # Backport This will backport the following commits from `main` to `8.10`: - [[Cloud Security] Fix first item flyout wont open in vuln table (#165214)](https://github.com/elastic/kibana/pull/165214) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Jordan <51442161+JordanSh@users.noreply.github.com> --- .../public/pages/vulnerabilities/vulnerabilities.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/x-pack/plugins/cloud_security_posture/public/pages/vulnerabilities/vulnerabilities.tsx b/x-pack/plugins/cloud_security_posture/public/pages/vulnerabilities/vulnerabilities.tsx index fa67fe3ee551a..557af22f5b641 100644 --- a/x-pack/plugins/cloud_security_posture/public/pages/vulnerabilities/vulnerabilities.tsx +++ b/x-pack/plugins/cloud_security_posture/public/pages/vulnerabilities/vulnerabilities.tsx @@ -281,9 +281,7 @@ const VulnerabilitiesDataGrid = ({ [pageSize, setUrlQuery] ); - const showVulnerabilityFlyout = flyoutVulnerabilityIndex - ? flyoutVulnerabilityIndex > invalidIndex - : undefined; + const showVulnerabilityFlyout = flyoutVulnerabilityIndex > invalidIndex; if (data?.page.length === 0) { return ;