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 (apache#19651)
  • Loading branch information
prosdev0107 authored Apr 15, 2022
1 parent 9407598 commit c320c29
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 c320c29

Please sign in to comment.