You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is called for each row and allows you to return custom props for this row based on its data. function(row: array, dataIndex: number, rowIndex: number) => objectExample
Thank you for the report. It looks like "undefined" was getting returned and the code was breaking when it tried to read a value from a variable of type "undefined". setRowProps should be setup to be a little sturdier.
I'll see about getting a fix into the next release.
Upgrading our code to using MUIDatatables to the latest 3.1.3 we encountered the following error:
We have such method on the table's options (
row[10]
is a boolean value - always set):Prior to our upgrade to v3 it worked.
Now it seems that it fails to work with the way it is initialized in TableBody.js:
If
options.setRowProps(row, dataIndex, rowIndex)
return nothing, the line:will cause the error.
I think what says https://github.com/gregnb/mui-datatables#options is not explicit enough:
We fixed this bug by writing:
The text was updated successfully, but these errors were encountered: