material-table icon indicating copy to clipboard operation
material-table copied to clipboard

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

Open balibou opened this issue 8 years ago • 4 comments

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

balibou avatar Nov 10 '18 22:11 balibou

Hi @balibou,

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

mbrn avatar Nov 11 '18 07:11 mbrn

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 avatar Oct 20 '19 00:10 RodolfoHill

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

rustycoslett avatar Dec 20 '19 15:12 rustycoslett

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.

spaceneurocruzz avatar Jul 13 '20 05:07 spaceneurocruzz