Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cloud Posture]fix incorrect vuln_mgmt details in flyout (#157745)
## Summary Summarize your PR. If it involves visual changes include a screenshot or gif. Currently, after navigating any page after the first page and clicking on vulnerability, the flyout displays incorrect details. Currently, we use the `data.page`, which lists the maximum amount of vulnerabilities(500 vulnerabilities). The `vulnerabilityIndex` is set each time, a user clicks to expand vulnerability. We were currently only selecting vulnerabilities from the first page. Solution: Use `slicedPage` to get the vulnerabilities on the current page and then select vulnerability by `vulnerabilityIndex` https://github.com/elastic/kibana/assets/17135495/df682ecf-d024-45e4-84ca-d7df22a60ec4
- Loading branch information