Skip to content

Commit

Permalink
fix: Select All on 2nd filter in table not showing checked checkboxes h…
Browse files Browse the repository at this point in the history
  • Loading branch information
dbranley committed Aug 27, 2024
1 parent 927d6d6 commit 7982b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ const
},
ContextualMenu = ({ onFilterChange, col, listProps, selectedFilters, setFiltersInBulk }: ContextualMenuProps) => {
const
isFilterChecked = (data: S, key: S) => !!selectedFilters && selectedFilters[data]?.includes(key),
isFilterChecked = (data: S, key: S) => !!selectedFilters && selectedFilters[data]?.includes(key) ? true : false,
[menuFilters, setMenuFilters] = React.useState(col.cellType?.tag
? Array.from(listProps.items.reduce((_filters, { key, text, data }) => {
key.split(',').forEach(key => _filters.set(key, { key, text, data, checked: isFilterChecked(data, key) }))
Expand Down

0 comments on commit 7982b42

Please sign in to comment.