From fb2826f92e3d0f729f18410d834bfe42e0a19c66 Mon Sep 17 00:00:00 2001 From: Mehmet Salih Yavuz Date: Fri, 5 Dec 2025 20:26:10 +0300 Subject: [PATCH] fix(SaveModal): Update chart state when saving in explore (#36441) --- superset-frontend/src/explore/components/SaveModal.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/explore/components/SaveModal.tsx b/superset-frontend/src/explore/components/SaveModal.tsx index 27908dfb39d..c37aa2013b1 100644 --- a/superset-frontend/src/explore/components/SaveModal.tsx +++ b/superset-frontend/src/explore/components/SaveModal.tsx @@ -46,7 +46,10 @@ import { canUserEditDashboard } from 'src/dashboard/util/permissionUtils'; import { setSaveChartModalVisibility } from 'src/explore/actions/saveModalActions'; import { SaveActionType } from 'src/explore/types'; import { UserWithPermissionsAndRoles } from 'src/types/bootstrapTypes'; -import { removeChartState } from 'src/dashboard/actions/dashboardState'; +import { + removeChartState, + updateChartState, +} from 'src/dashboard/actions/dashboardState'; import { Dashboard } from 'src/types/Dashboard'; // Session storage key for recent dashboard @@ -177,6 +180,7 @@ class SaveModal extends Component { async saveOrOverwrite(gotodash: boolean) { this.setState({ isLoading: true }); + this.props.dispatch(updateChartState(this.props.form_data?.table_state)); // Create or retrieve dashboard type DashboardGetResponse = {