-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens] fix chart switching when on VisualizationDimensionEditor #70689
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
Good one, Joe, didn't think about it, thanks 👌 |
@elasticmachine merge upstream |
7666465
to
c42437e
Compare
@elasticmachine merge upstream |
32ee830
to
4dba563
Compare
@elasticmachine merge upstream |
a51d47c
to
ab805d3
Compare
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in Firefox, no crashes. LGTM
|
||
const { framePublicAPI, layerId, isOnlyLayer, onRemoveLayer } = props; | ||
const datasourcePublicAPI = framePublicAPI.datasourceLayers[layerId]; | ||
|
||
React.useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nit: Normally we import useEffect
explicitly
|
||
React.useEffect(() => { | ||
setPopoverState(initialPopoverState); | ||
}, [props.activeVisualizationId]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this dependency list complete as far as the linter is concerned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, it's all good here :)
@elasticmachine merge upstream |
💚 Build SucceededBuild metricspage load bundle size
History
To update your PR or re-run it, just comment with: |
Summary
Fixes #70626
Checklist
Delete any items that are not applicable to this PR.
For maintainers