mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
fix(dnd&column): make to fix the blank state issue when only one column select (#19651)
This commit is contained in:
parent
94075983f8
commit
c320c295dc
@ -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],
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user