From d77098a0c53c29f6fd0d7697e6bdcedf2ba91236 Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Tue, 12 Jan 2021 09:01:16 +0200 Subject: [PATCH] fix(native-filters): incorrect queriesData state (#12409) --- superset-frontend/package-lock.json | 10 ---------- superset-frontend/package.json | 1 - .../dashboard/components/nativeFilters/FilterBar.tsx | 2 +- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json index 1f6ee258c3c2b..b80fcb0975088 100644 --- a/superset-frontend/package-lock.json +++ b/superset-frontend/package-lock.json @@ -19101,16 +19101,6 @@ } } }, - "@superset-ui/plugin-filter-antd": { - "version": "0.16.4", - "resolved": "https://registry.npmjs.org/@superset-ui/plugin-filter-antd/-/plugin-filter-antd-0.16.4.tgz", - "integrity": "sha512-c1EZZukUvppeb7gYL4h69Jscz+BdLQJNqx/EbIJM865zfuO1EdZXVR5tYs2LNpPKvNNh8SRO+f+fS485gWcN0A==", - "requires": { - "@superset-ui/chart-controls": "0.16.4", - "@superset-ui/core": "0.16.4", - "antd": "^4.9.1" - } - }, "@superset-ui/preset-chart-xy": { "version": "0.16.4", "resolved": "https://registry.npmjs.org/@superset-ui/preset-chart-xy/-/preset-chart-xy-0.16.4.tgz", diff --git a/superset-frontend/package.json b/superset-frontend/package.json index d30a070f1ee4e..c8ee1d29f9318 100644 --- a/superset-frontend/package.json +++ b/superset-frontend/package.json @@ -92,7 +92,6 @@ "@superset-ui/plugin-chart-echarts": "^0.16.4", "@superset-ui/plugin-chart-table": "^0.16.4", "@superset-ui/plugin-chart-word-cloud": "^0.16.4", - "@superset-ui/plugin-filter-antd": "^0.16.4", "@superset-ui/preset-chart-xy": "^0.16.4", "@vx/responsive": "^0.0.195", "abortcontroller-polyfill": "^1.1.9", diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar.tsx index 96c83c2d1d30c..bc66d53290189 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar.tsx @@ -276,7 +276,7 @@ const FilterValue: React.FC = ({ height={20} width={220} formData={getFormData()} - queriesData={[state]} + queriesData={state} chartType="filter_select" hooks={{ setExtraFormData }} />