Skip to content

Commit a2d50e5

Browse files
committedAug 29, 2023
feat(filter): passing all data fields to filterfields function
1 parent e49324e commit a2d50e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/helpers/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function fieldFilter(items, filterFields) {
108108
for (const itemKey in itemValue) {
109109
if (itemKey === filterKey) {
110110
if (typeof filterFields[filterKey] === 'function') {
111-
return filterFields[filterKey](itemValue[itemKey])
111+
return filterFields[filterKey](itemValue[itemKey], itemValue)
112112
}
113113
if (filterFields[filterKey] === '') {
114114
return true

0 commit comments

Comments
 (0)
Please sign in to comment.