-
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
[Maps] ensure any existing layers get cleared when previewing a new one #31973
[Maps] ensure any existing layers get cleared when previewing a new one #31973
Conversation
Pinging @elastic/kibana-gis |
//many source editors allow users to modify the settings in the add-source wizard | ||
//this triggers a new request for preview. Any existing transient layers need to be cleared before the new one can be added. | ||
await dispatch(setSelectedLayer(null)); | ||
await dispatch(removeTransientLayer()); |
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.
Makes sense to me!
"many source editors allow users to modify the settings in the add-source wizard", that is very true. Nice catch @nickpeihl @thomasneirynck ! lgtm! |
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.
lgtm
code review, tested in chrome
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.
Actually, Lets move these to
setTransientLayer
since they are really part of that action creator
lgtm! thanks! |
💚 Build Succeeded |
Agreed, but let's do this in separate PR imho. when moving to |
Closes #31962