Skip to content

Commit

Permalink
fix(dnd&column): make to fix the blank state issue when only one colu…
Browse files Browse the repository at this point in the history
…mn select (#19651)

(cherry picked from commit c320c29)
  • Loading branch information
prosdev0107 authored and villebro committed Apr 15, 2022
1 parent 98c4d94 commit cdc136c
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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],
);

Expand Down

0 comments on commit cdc136c

Please sign in to comment.