vddavydova opened a new issue, #32835: URL: https://github.com/apache/superset/issues/32835
### Bug description ### Description: When switching between different chart types in Superset, duplicate measures are added unexpectedly. This issue occurs specifically when switching between a Line Chart and a Waterfall Chart. ### Steps to reproduce: 1. Create a Line Chart and set up the X-Axis and a Measure (e.g., `SUM(goods_services_export)`).  2. Change the chart type to Waterfall Chart. The selected measure is sometimes removed.  3. Re-add the same measure (`SUM(goods_services_export)`) and build the chart successfully.  4. Switch the chart type back to Line Chart. Now, the measure appears twice in the settings.  5. If you continue switching between chart types (Line Chart → Waterfall Chart → Line Chart), new duplicate measures keep appearing.  ### Expected behavior: Switching between chart types should not result in duplicate measures. The selected measures should persist without being reset or duplicated. ### Actual behavior: - Measures are removed when switching to a Waterfall Chart. - When switching back to a Line Chart, the measure is duplicated. - Repeating the switch process keeps adding more duplicates. ### Environment: - Database backend: ClickHouse ### Possible Cause: It seems like the UI is not correctly handling measure persistence when switching chart types. Measures might not be properly reset or are being re-added instead of being retained. ### Additional context: This issue happens inconsistently, but once it starts, it continues with every switch between chart types. ### Screenshots/recordings _No response_ ### Superset version 4.1.1 ### Python version I don't know ### Node version I don't know ### Browser Chrome ### Additional context _No response_ ### Checklist - [x] I have searched Superset docs and Slack and didn't find a solution to my problem. - [x] I have searched the GitHub issue tracker and didn't find a similar bug report. - [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org