From c320c295dcf73f2575d371eaf0c2ba9f9eef6141 Mon Sep 17 00:00:00 2001 From: smileydev <47900232+prosdev0107@users.noreply.github.com> Date: Fri, 15 Apr 2022 07:43:25 -0400 Subject: [PATCH] fix(dnd&column): make to fix the blank state issue when only one column select (#19651) --- .../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], );