mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
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:
committed by
GitHub
parent
5bf9634c29
commit
765c72a858
@@ -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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user