Skip to content

Commit

Permalink
Prevent current dashboards being overwritten on viz type change.
Browse files Browse the repository at this point in the history
  • Loading branch information
codyml committed Jul 12, 2022
1 parent 57b6838 commit fcb00d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions superset-frontend/src/explore/actions/hydrateExplore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const hydrateExplore =
controlsTransferred: [],
standalone: getUrlParam(URL_PARAMS.standalone),
force: getUrlParam(URL_PARAMS.force),
sliceDashboards: initialFormData.dashboards,
};

// apply initial mapStateToProps for all controls, must execute AFTER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ function ExploreViewContainer(props) {
form_data={props.form_data}
sliceName={props.sliceName}
dashboardId={props.dashboardId}
sliceDashboards={props.exploreState.form_data.dashboards ?? []}
sliceDashboards={props.exploreState.sliceDashboards ?? []}
/>
)}
<Resizable
Expand Down

0 comments on commit fcb00d0

Please sign in to comment.