Skip to content
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

fix: empty string if currentFilterOption is undefined #640

Merged
merged 2 commits into from Oct 4, 2023

Conversation

paolapog
Copy link
Contributor

Hello, I've noticed an undefined on the filtering tooltip (for a custom filter component):
Screenshot 2023-07-26 at 12 06 15
due to an optional chaining for the columnDef._filterFn property.
In this case the property is undefined but with the optional chaining everything keeps working (if you try to remove the optional chaining, it breaks).
I would like to have an empty string instead of an "undefined".
I hope I was helpful,
cheers 🍺

@vercel
Copy link

vercel bot commented Jul 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
material-react-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 8:36pm
material-react-table-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 8:36pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants