KevinVandy/material-react-table

[Table] Column with id 'undefined' does not exist

wamra opened this issue · 1 comments

material-react-table version

2.13.0

react & react-dom versions

18.2.0

Describe the bug and the steps to reproduce it

When utilizing the getSubRow handler in the table, eventhough all columns have 'id' set up, I see this error

[Table] Column with id 'undefined' does not exist

thrown a lot in console

image

Minimal, Reproducible Example - (Optional, but Recommended)

Sharing sandbox
https://codesandbox.io/p/sandbox/react-mrt-nested-zdj78v

Screenshots or Videos (Optional)

image
image

Do you intend to try to help solve this bug with your own PR?

No, because I do not know how

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

As it turns out, I made the mistake of copying code from one of the examples here

https://www.material-react-table.com/docs/guides/column-grouping#customize-remove-column-grouping-source-code