fix(dnd&column): make to fix the blank state issue when only one column select (#19651)

This commit is contained in:
smileydev 2022-04-15 07:43:25 -04:00 committed by GitHub
parent 94075983f8
commit c320c295dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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],
);