mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
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 {
|
class Header extends React.PureComponent {
|
||||||
static discardChanges() {
|
static discardChanges() {
|
||||||
window.location.reload();
|
const url = new URL(window.location.href);
|
||||||
|
|
||||||
|
url.searchParams.delete('edit');
|
||||||
|
window.location.assign(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
Loading…
Reference in New Issue
Block a user