You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by kg...@apache.org on 2022/04/15 11:43:39 UTC

[superset] branch master updated: fix(dnd&column): make to fix the blank state issue when only one column select (#19651)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new c320c295dc fix(dnd&column): make to fix the blank state issue when only one column select (#19651)
c320c295dc is described below

commit c320c295dcf73f2575d371eaf0c2ba9f9eef6141
Author: smileydev <47...@users.noreply.github.com>
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)
---
 .../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],
   );