-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding<FilterButton /> cause an error "Uncaught TypeError: Cannot read properties of undefined (reading 'filter')" #7026
Comments
I couldn't reproduce this problem in the |
I use a custom data provider ra-data-nestjsx-crud, so I can't put a snippet to codesandbox. Could the problem be with the provider? I can't find any specific requirements |
Doesn't look like a |
I am having same issue on my test application. MongoDB (logos-backup.zip) https://drive.google.com/file/d/1qBjUMf8YEfm7qPK1N2_KnGDJig6ugOh0/view?usp=sharing Every zip file has INSTALL.txt file which explains how to perform installation. Your help is appreciated! Happy New Year! |
Hello everyone, I have the same problem, I added FilterButton to the actions of my resource because the documentation example suggest that and I receive the same error. |
@Miruzz @FernandoVelcic for the FilterButton to function you have to add filters prop in the List component. Here is an example how to do it filters: Filter Inputs. The FilterButton and filters are placed on different sections in the documentation and this can lead to pondering how to use it the first time. Hope this helps. |
@hlesev, @fzaninotto, |
I think the FilterButton should throw an error when there is no The documentation may explain that the |
What you were expecting:
Work as expected out of the box
What happened instead:
Uncaught TypeError: Cannot read properties of undefined (reading 'filter')
when I added<FilterButton />
Steps to reproduce:
This almost clear boilerplate
Related code:
App.tsx
UserList.tsx
Environment
The text was updated successfully, but these errors were encountered: