Skip to content

Commit

Permalink
Fix if filter applied check
Browse files Browse the repository at this point in the history
  • Loading branch information
vesnushka committed Dec 18, 2024
1 parent 083ad27 commit 9a4b669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Table/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function populateTableColumnsWithFiltersAndSorts<R extends Resource>(

const updatedColumn: ColumnType<RecordType<R>> = {
...column,
filtered: !_.isUndefined(filter?.value) && !_.isNull(filter?.value) && filter?.value === '',
filtered: !_.isUndefined(filter?.value) && !_.isNull(filter?.value) && filter?.value !== '',
filterDropdown: filter
? (props: FilterDropdownProps) => <TableFilter {...props} filter={filter} onChange={onChange} />
: undefined,
Expand Down

0 comments on commit 9a4b669

Please sign in to comment.