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 = {