rumbin opened a new issue, #23015: URL: https://github.com/apache/superset/issues/23015
#### How to reproduce the bug 1. Go to a dashboard which shows thus behavior (which will be the trickiest part about this issue) 2. Click EDIT DASHBOARD 3. Click the Trash icon of any affected chart (not all charts of the dashboard are necessarily affected) ### Expected results I can remove the chart from the dashboard. ### Actual results Error message: <img width="1177" alt="image" src="https://user-images.githubusercontent.com/1220356/217196328-e20c4d58-0c5a-4138-8d57-86ae6fe461b8.png"> This is what the browser console says: <img width="815" alt="image" src="https://user-images.githubusercontent.com/1220356/217196512-a2aa18c6-eea8-4665-8bb4-6addf724e723.png"> ``` TypeError: Cannot read properties of undefined (reading 'type') at $i (activeAllDashboardFilters.ts:47:21) at activeAllDashboardFilters.ts:66:5 at Array.forEach (<anonymous>) at $i (activeAllDashboardFilters.ts:65:26) at activeAllDashboardFilters.ts:66:5 at Array.forEach (<anonymous>) at $i (activeAllDashboardFilters.ts:65:26) at activeAllDashboardFilters.ts:66:5 at Array.forEach (<anonymous>) at $i (activeAllDashboardFilters.ts:65:26) ``` Refresh the web page when the error is shown; it jumps our of edit mode and the chart is still at its place. * Trying to remove the whole dashboard row results in the same error. * Copying the dashboard and trying to remove the chart from the copy does not help. * Removing all dashboard filters does not help. * Removing all cross filter settings from the dashboard's JSON does not help. #### Screenshots See above... ### Environment We run Superset 2.0.1 from the docker images. - browser type and version: Chrome, Version 109.0.5414.119 (Official Build) (arm64) - superset version: 2.0.1 - python version: `python --version` FIXME - node.js version: `node -v` FIXME - feature flags: ```python FEATURE_FLAGS = { "SQLLAB_BACKEND_PERSISTENCE": True, "ENABLE_TEMPLATE_PROCESSING": True, "DASHBOARD_CROSS_FILTERS": True, "ALERT_REPORTS": True, "DASHBOARD_NATIVE_FILTERS": True, "GENERIC_CHART_AXES": True, "DASHBOARD_NATIVE_FILTERS_SET": True, "DASHBOARD_CACHE": True, } ``` ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [ ] I have reproduced the issue with at least the latest released version of superset. - [ ] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context We experienced similar issues before on the same Superset instance. In these cases the dashboards got imported from an instance which runs the current dev version of the `master/main` branch. We assumed that importing from a different Superset version caused the error in these cases. However, the case that I am describing above is happening on a dashboard which was exclusively created and modified on the same instance. Any help is welcome. I'll happily add more debugging info if you tell me what is needed. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
