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
  • Loading branch information
prosdev0107 committed Apr 11, 2022
1 parent d693f4e commit 39d7a03
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 39d7a03

Please sign in to comment.