Skip to content

Commit

Permalink
fix: update slug name (#17961)
Browse files Browse the repository at this point in the history
* fix: fix update slug name

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx

Co-authored-by: Michael S. Molina <[email protected]>

Co-authored-by: Michael S. Molina <[email protected]>
  • Loading branch information
2 people authored and eschutho committed Jan 27, 2022
1 parent f98fcff commit f37525d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ const FilterBar: React.FC<FiltersBarProps> = ({
rison.encode(replaceUndefinedByNull(dataMaskSelected)),
);

// pathname could be updated somewhere else through window.history
// keep react router history in sync with window history
history.location.pathname = window.location.pathname;
history.replace({
search: newParams.toString(),
});
Expand Down

0 comments on commit f37525d

Please sign in to comment.