Warning: Failed prop type: Invalid prop `actions[0]` supplied to `MaterialTable`.
See original GitHub issueThis error shows up in the console. I have tried to remove each singular line inside of the ‘actions’ but the error only goes away if I remove ‘actions’ itself or everything inside.
This is my ‘actions’ code:
actions={[
{
icon: Print,
tooltip: 'Print',
onClick: (event, rowData) => {
this.setState({ rowData })
this.handleClickOpen()
},
}
]}
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Invalid prop actions[0] supplied to MaterialTable and fontSize ...
Warning : Failed prop type: Invalid prop actions[0] supplied to MaterialTable . Can't pass fontSize props when using string icon. To Reproduce
Read more >Invalid prop `data` supplied to `MaterialTable`, expected one ...
The api is http://localhost:8080/api/agreements and I am trying to display the data in a react material table but I am getting this error...
Read more >material-table/Lobby - Gitter
Warning : Failed prop type: Invalid prop data supplied to MaterialTable. in MaterialTable in Unknown (created by WithStyles(Component)) in WithStyles(Component) ...
Read more >Warning: Failed prop type: Invalid prop `actions[0]` supplied to ...
Describe the bug. The following appears in the console: Warning: Failed prop type: Invalid prop actions[0] supplied to MaterialTable .
Read more >material-table
material-table. React data table component that is based on material-ui. Get Started. GitHub stars. Actions. You can add one or multiple row based...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try this
icon: () => <Edit/>
I am having same error in Material Table using this
and this
Issued solved. If any one get this error you can try this