From 5768fce85cf3cc96909241f630037e1898a49905 Mon Sep 17 00:00:00 2001 From: stephenLYZ <750188453@qq.com> Date: Tue, 22 Feb 2022 23:54:27 +0800 Subject: [PATCH] rm to top --- .../dashboard/components/nativeFilters/FilterBar/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx index df6b26ab1d622..5d3ab5637a406 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx @@ -234,13 +234,13 @@ const FilterBar: React.FC = ({ if (previousFilters) { const updates = {}; Object.values(filters).forEach(currentFilter => { - const currentType = currentFilter.filterType; - const currentTargets = currentFilter.targets; - const currentDataMask = currentFilter.defaultDataMask; const previousFilter = previousFilters?.[currentFilter.id]; if (!previousFilter) { return; } + const currentType = currentFilter.filterType; + const currentTargets = currentFilter.targets; + const currentDataMask = currentFilter.defaultDataMask; const previousType = previousFilter?.filterType; const previousTargets = previousFilter?.targets; const previousDataMask = previousFilter?.defaultDataMask;