Skip to content

Commit

Permalink
update-enums-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Samvel Baghdasaryan committed May 15, 2024
1 parent 175b1d9 commit 8c379f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "beautiful-react-table",
"version": "7.4.7",
"version": "7.4.8",
"description": "My first react typescript package",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/table/MainHeader/Filter/FiltersPerColumn/apiFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const APIFilter = ({
}
if (filterUiHelper(typeElem.ColumnType, filterTypeing.TypeForUi) !== 2) {
filteredData.ComparisonType =
item.ColumnType === 'Tags' && filteredData.ComparisonType === 'In'
item.ColumnType === 'Tags' && filteredData.ComparisonType === 'Contains'
? filteredData.ComparisonType
: checkedItems.length > 1
? 'In'
Expand Down
4 changes: 2 additions & 2 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ const filterUiHelperMap = {
LessThanOrEqual: 6,
},
Tags: {
In: 4,
},
Contains:4
}
} as const

export const filterUiHelper = (ColumnType: string, ComparisonType: string) => {
Expand Down

0 comments on commit 8c379f8

Please sign in to comment.