Material-table: Warning: Failed prop type: Invalid prop `data` of type `array` supplied to `MTableActions`, expected `object`.

Created on 10 Nov 2018  路  4Comments  路  Source: mbrn/material-table

Describe the bug
When I copy paste the code of https://mbrn.github.io/material-table/#/docz-examples-example-selection in a new create react app and I select a row, I have the following warning:

Warning: Failed prop type: Invalid prop `data` of type `array` supplied to `MTableActions`, expected `object`.

To Reproduce
Steps to reproduce the behavior:

  1. install last create-react-app
  2. install the package (1.1.2)
  3. copy the code of selection example
  4. click to select a row
  5. See warning

Expected behavior
No warning displayed

Most helpful comment

I have the same problem in Oct 19 - 2019.

I am using material-table "^1.50.0"

index.js:1375 Warning: Failed prop type: Invalid prop data supplied to MaterialTable.
in MaterialTable
in Unknown (created by WithStyles(Component))
in WithStyles(Component) (at ProgramDetailTable.js:213)
in div (at ProgramDetailTable.js:212)

All 4 comments

Hi @balibou,

Thanks your your issue. I resolved it and it will be in next release. Please star repo and wait for next releases

I have the same problem in Oct 19 - 2019.

I am using material-table "^1.50.0"

index.js:1375 Warning: Failed prop type: Invalid prop data supplied to MaterialTable.
in MaterialTable
in Unknown (created by WithStyles(Component))
in WithStyles(Component) (at ProgramDetailTable.js:213)
in div (at ProgramDetailTable.js:212)

I also have the same problem on just 1 of my tables, but not the other 6. Very strange.

I have the same problem in Oct 19 - 2019.

I am using material-table "^1.50.0"

index.js:1375 Warning: Failed prop type: Invalid prop data supplied to MaterialTable.
in MaterialTable
in Unknown (created by WithStyles(Component))
in WithStyles(Component) (at ProgramDetailTable.js:213)
in div (at ProgramDetailTable.js:212)

@RodolfoHill have you solved this? I encountered the same problem today.

Was this page helpful?
0 / 5 - 0 ratings