Skip to content

Commit

Permalink
Add option to unselect the removed tag fix trento-project#416
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaksy committed Aug 29, 2022
1 parent 1b8b357 commit 6d1ce75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/js/components/Table/filters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export const TableFilters = ({ config, data, filters, onChange }) => {
.map((column) => {
const filterValue = getFilter(column.key, filters);
const filterOptions = uniq(
data.map(({ [column.key]: option }) => option).flat(Infinity)
data
.map(({ [column.key]: option }) => option)
.flat(Infinity)
.concat(filterValue)
);

return (
Expand Down

0 comments on commit 6d1ce75

Please sign in to comment.