Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Search] Move setting pipeline settings to component render (#179625)
## Summary Setting pipeline settings data was in PipelineSettings logic. This is fine if the component is rendered where index is not undefined. But in Connector Detail view there is a brief period of `index` is null. That caused some unwanted "not found" errors to be seen on UI. Therefore with this fix, views are hidden if index is null to prevent deeper components to try using same logic. And when index is defined, same logic from afterMount is used in useEffect hook. Example: <img width="1429" alt="Screenshot 2024-03-28 at 16 19 20" src="https://github.com/elastic/kibana/assets/1410658/7147bb79-2506-46d1-83d3-fa7fa75fb945"> ### Checklist Delete any items that are not applicable to this PR. - [ ] [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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed
- Loading branch information