Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Samvel Baghdasaryan committed May 24, 2024
1 parent 0f33b8b commit ed407d9
Show file tree
Hide file tree
Showing 4 changed files with 10 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.9",
"version": "7.5.0",
"description": "My first react typescript package",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ const MultipleCheck = ({
}
const isEqual = (option: any, value: any) => {
let numericValue = value
if (option === '' || option === null || option === 'null') {
return true
if (numericValue === 'Empty') {
numericValue = ''
}
if (numericValue === 'Blank') {
numericValue = null
}
if (['Number', 'Currency', 'Percentage'].includes(item.ColumnType) && typeof value === 'string') {
numericValue = +value
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 === 'Contains'
item.ColumnType === 'Tags' || item.ColumnType === 'TagsCollection'
? filteredData.ComparisonType
: checkedItems.length > 1
? 'In'
Expand Down
3 changes: 3 additions & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ const filterUiHelperMap = {
LessThanOrEqual: 6,
},
Tags: {
In:4
},
TagsCollection: {
Contains:4
}
} as const
Expand Down

0 comments on commit ed407d9

Please sign in to comment.