mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00: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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user