fix: update slug name (#17961)

* 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>
This commit is contained in:
Phillip Kelley-Dotson
2022-01-07 11:37:12 -08:00
committed by GitHub
parent 5bf9634c29
commit 765c72a858

View File

@@ -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(),
});