mirror of https://github.com/apache/superset.git
fix(dashboard): Remove edit from url params when discarding changes (#15709)
* Remove edit from url params * Change replace to assign
This commit is contained in:
parent
d4bec135e8
commit
ebec353351
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue