This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch 1.5
in repository https://gitbox.apache.org/repos/asf/superset.git

commit cdc136c70ab210ed35b2bdda4654d62b0a1f2593
Author: smileydev <[email protected]>
AuthorDate: Fri Apr 15 07:43:25 2022 -0400

    fix(dnd&column): make to fix the blank state issue when only one column 
select (#19651)
    
    (cherry picked from commit c320c295dcf73f2575d371eaf0c2ba9f9eef6141)
---
 .../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 c68ee009ea..529d4c7c78 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],
   );
 

Reply via email to