Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] fix unhandled error in agent details when components are miss…
…ing (#174152) ## Summary Closes #174012 Added a null check when `agent.components` is undefined, to prevent unhandled error in Agent Details UI. To reproduce: 1. start kibana locally/cloud version 8.12+ 2. create agent policy with endpoint 1.3.0 integration (can be latest too) 3. enroll an agent version 7.17.16, can be in container 4. navigate to agent details page, open the inputs arrows on the right 5. expect that there is no error banner coming up, but an empty content <img width="1197" alt="image" src="https://github.com/elastic/kibana/assets/90178898/dabcca72-4e08-4185-a166-a91136615904"> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
- Loading branch information