Skip to content

Crash when filtering on tabletree #566

Closed
@DennisRP

Description

@DennisRP

Demo running 4.3.44:
https://codesandbox.io/s/material-table-starter-template-forked-qnwwfg
Try to enter any term in the filter field. The first keypress will crash the table.

This seems to happen due to the ordering of the items. If I move the first item ("failswhenfirstinobject") to the bottom, it works as expected.

I couldn't locate the issue, but I did see it crashed, because the array of paths for childRows didn't contain the path of the current row (which is expected it would). When that lookup fails, the pointer would be set to undefined Link

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions