Describe the bug
Each time when we change the data source from the data source picker in the discover, it is sending multiple requests and some of them are repetitive.
There are probably too many calls being made when a change occurs to this selector: IndexPatternSelect is defined in src/plugins/data/public/ui/index_pattern_select.
One of the calls is more than likely related to the previously selected value which results in re-triggering any errors that were previously triggered.
Describe the bug Each time when we change the data source from the data source picker in the discover, it is sending multiple requests and some of them are repetitive.
To Reproduce
https://github.com/opensearch-project/OpenSearch-Dashboards/assets/43937633/9f29d121-2aa9-4162-bdf2-ca8949e9fc7a
Dashboards Version 2.11