Skip to content

Filters feature: Cannot read properties of undefined #4697

Description

@Achaak

Describe the bug

Hello,

When I put undefined in the columnFilters state, I have this error
image
But the typing authorize to put undefined
And when I put a empty array, my browser freeze

Your minimal, reproducible example

https://tanstack.com/table/v8/docs/examples/react/filters

Steps to reproduce

Put undefined in the columnFilters state with this example
https://tanstack.com/table/v8/docs/examples/react/filters

Expected behavior

Check if columnFilters is undefined or remove undefined typing

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

OS: Windows
Browser: Opera

react-table version

8.7.9

TypeScript version

4.9.5

Additional context

No response

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions