diff --git a/superset-frontend/src/dashboard/components/Header/index.jsx b/superset-frontend/src/dashboard/components/Header/index.jsx index b4595774fe..79411fad11 100644 --- a/superset-frontend/src/dashboard/components/Header/index.jsx +++ b/superset-frontend/src/dashboard/components/Header/index.jsx @@ -129,7 +129,10 @@ const StyledDashboardHeader = styled.div` class Header extends React.PureComponent { static discardChanges() { - window.location.reload(); + const url = new URL(window.location.href); + + url.searchParams.delete('edit'); + window.location.assign(url); } constructor(props) {