Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Lens] Remove deprecated componentWillReceiveProps usage (#159502)
## Summary ### Testing The `componentWillReceiveProps` method added to `ErrorBoundary` was making sure that when we change the errored state of the visualization to the correct one, the UI will recover. To make sure it works with the new solution I followed the following steps: 1. Open Lens and React dev tools. 2. In React dev tools, search for WorkspacePanel and select surrounding it `ErrorBoundary`. 3. In dev tools, modify the state of originalError to any string - the UI will reflect it. 4. change the state of the UI by dropping the field to dimension. 5. The UI recovered. WorkspacePanel displays again 🎉 https://github.com/elastic/kibana/assets/4283304/af6198da-cc97-40a8-9cfc-763edec67bf1 Fixes #159501
- Loading branch information