You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use setFilterValue for setting the column filter values.
set the filter value by doing something like:
// more react here<CalendarinitialFocusmode="range"defaultMonth={date?.from}selected={date}onSelect={(newDateRange)=>{setFilterValue([{ field,operator: 'gte',value: newDateRange.from},{ field,operator: 'lte',value: newDateRange.to},])setDate(newDateRange)}}numberOfMonths={2}/>// more react here
My Problem
after setting a filter for the createdAt column, my columnFilters` value is:
but when I add another conditionalFilter for the updatedAt column, the conditionalFilters error arises:
Expected Behavior
I expect we should have an option of providing key values to useTable's columnFilters. that way we could remove the conditionalFilter error in the console.
BjornPython
changed the title
[BUG] error when trying to implement a conditionalFIlter using useTable from @refinedev/react-table
[BUG] error when trying to implement multiple top level conditionalFilter using useTable from @refinedev/react-table
Apr 16, 2024
Hey @BjornPython sorry for the issue, we'll investigate with the steps you've provided and get back to you when we have any updates on this. At first glance it looks like a mapping issue between @refinedev/react-table's filters to @refinedev/core and then its passed to the data provider's getList method with missing fields.
Describe the bug
I am getting the error:
when trying to implement multiple top level
conditionalFilter
using@refinedev/react-table
's useTable.Steps To Reproduce
Create a table using
@refinedev/react-table
's useTable.use the
and
filterOperator for the columns with date values.use setFilterValue for setting the column filter values.
set the filter value by doing something like:
My Problem
after setting a filter for the
createdAt
column, my columnFilters` value is:and the
filters
value I get in my dataprovider's getList is:but when I add another conditionalFilter for the
updatedAt
column, the conditionalFilters error arises:Expected Behavior
I expect we should have an option of providing
key
values to useTable's columnFilters. that way we could remove theconditionalFilter
error in the console.Packages
Additional Context
Just for the sake of testing, I also tried hardcoding filters with key values in columnFilters, but i am still getting the same error.
The text was updated successfully, but these errors were encountered: