From 39d7a038b17391e7acaeb6018c10a3affc07ef67 Mon Sep 17 00:00:00 2001 From: Taylor Date: Mon, 11 Apr 2022 13:21:41 -0400 Subject: [PATCH] fix(dnd&column): make to fix the blank state issue when only one column select --- .../controls/DndColumnSelectControl/DndColumnSelect.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx b/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx index c68ee009ea178..529d4c7c78f8b 100644 --- a/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx +++ b/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx @@ -127,14 +127,7 @@ export function DndColumnSelect(props: DndColumnSelectProps) { ); const popoverOptions = useMemo( - () => - Object.values(options).filter( - col => - !optionSelector.values - .filter(isColumnMeta) - .map((val: ColumnMeta) => val.column_name) - .includes(col.column_name), - ), + () => Object.values(options), [optionSelector.values, options], );