Skip to content

Column filtering is broken after update #843

Closed
@bobisjan

Description

@bobisjan

Describe the bug
Column filtering is broken after update to v6.4.3

To Reproduce
Have a table with filtering option set to true

Expected behavior
Column filtering works as before

Screenshots

Cannot read properties of undefined (reading 'groupOrder')
TypeError: Cannot read properties of undefined (reading 'groupOrder')
    at http://localhost:3000/static/js/vendors-node_modules_material-table_core_dist_index_js-node_modules_material-ui_icons_AddBox_-863683.chunk.js:11053:32
    at Array.filter (<anonymous>)
    at MTableFilterRow (http://localhost:3000/static/js/vendors-node_modules_material-table_core_dist_index_js-node_modules_material-ui_icons_AddBox_-863683.chunk.js:11052:11)
    at renderWithHooks (http://localhost:3000/static/js/bundle.js:47356:22)
    at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:49839:17)
    at beginWork (http://localhost:3000/static/js/bundle.js:50892:20)
    at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:37933:18)
    at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:37977:20)
    at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:38032:35)
    at beginWork$1 (http://localhost:3000/static/js/bundle.js:55023:11)

Desktop:

  • OS: macOS
  • Browser Chrome
  • Version 124.0.6367.119

Additional context
Probably caused by these changes 2819897#diff-5ee3bd52eeef716c4038c1d4cc318c928359f1c1af7b4f43f1a9b0021891163e, because columns are not columnDefs anymore, because they are mapped to <TableCells, hence tableData is undefined.

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