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 <70410625+michael-s-molina@users.noreply.github.com>

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
  • Loading branch information
pkdotson and michael-s-molina committed Jan 7, 2022
1 parent 5bf9634 commit 765c72a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ const FilterBar: React.FC<FiltersBarProps> = ({
}
newParams.set(URL_PARAMS.nativeFiltersKey.name, dataMaskKey);

// 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 765c72a

Please sign in to comment.