mirror of
https://github.com/apache/superset.git
synced 2024-09-19 03:59:49 -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(
|
const popoverOptions = useMemo(
|
||||||
() =>
|
() => Object.values(options),
|
||||||
Object.values(options).filter(
|
|
||||||
col =>
|
|
||||||
!optionSelector.values
|
|
||||||
.filter(isColumnMeta)
|
|
||||||
.map((val: ColumnMeta) => val.column_name)
|
|
||||||
.includes(col.column_name),
|
|
||||||
),
|
|
||||||
[optionSelector.values, options],
|
[optionSelector.values, options],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user