Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI] Fix switching from one cluster to the other in the repair/schedu…
…le screens The clusterName in state was consistently being overridden by an observable subscription which refreshes the list of clusters every 2 seconds but is missing a check to stop rewriting state.clusterName with the first cluster of the list in alphabetical order. Also, state updates are async in React so there can be some race conditions when updating the state and reading it again. Made the select change state change use a callback to ensure serialization of actions here.
- Loading branch information