Skip to content

Commit 4056dbe

Browse files
author
Samvel Baghdasaryan
committed
starts-with-ui
1 parent 532eabf commit 4056dbe

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "beautiful-react-table",
3-
"version": "7.7.8",
3+
"version": "7.7.9",
44
"description": "My first react typescript package",
55
"main": "./dist/cjs/index.js",
66
"module": "./dist/esm/index.js",

src/table/MainHeader/Filter/FiltersPerColumn/UiTypes/ModalSingleField.tsx

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,7 @@ const ModalForSingleField = ({
123123
val.length &&
124124
perColumnListForFilters?.length
125125
) {
126-
let newPerColumnList: string[] = perColumnListForFilters
127-
if (!isLoadedMoreData) {
128-
newPerColumnList = perColumnListForFilters ? [val, ...perColumnListForFilters] : [val]
129-
}
130-
if (perColumnListForFilters.length === 1) {
131-
return perColumnListForFilters
132-
} else {
133-
return newPerColumnList
134-
}
126+
return perColumnListForFilters
135127
} else {
136128
return []
137129
}
@@ -190,11 +182,11 @@ const ModalForSingleField = ({
190182
display: 'flex',
191183
justifyContent: 'space-between',
192184
minHeight: 40,
193-
borderBottom:
194-
props['data-option-index' as keyof typeof props] === 0 &&
195-
(perColumnListForFilters?.length ?? 0) > 1
196-
? '1px solid #DCDCDC'
197-
: 'none',
185+
// borderBottom:
186+
// props['data-option-index' as keyof typeof props] === 0 &&
187+
// (perColumnListForFilters?.length ?? 0) > 1
188+
// ? '1px solid #DCDCDC'
189+
// : 'none',
198190
}}
199191
>
200192
{item.ColumnName === columnName && isLoadingFilters ? (

0 commit comments

Comments
 (0)