Open kickinmhl opened 3 years ago
@karthick-vinod
hmm... it's Interesting If you create a codesandbox showing the problem I can take a look.
I don't know how to reproduce the problem... current code (too much to post in sandbox) shows nearly identical code. That was the question... what determines whether the data object is returned in index 0 or not.
Question:
I have 2 instances of the table implemented.
I have found that in one table the customBodyRender's second parameter receives tableMeta.rowData index 0 as the entire data object, but in the other implementation tableMeta.rowData index 0 is undefined.
What configuration determines whether the data object is passed as index 0 of tableMeta.rowData?
Column definition:
resourceName: { name: 'resourceName', label: 'Resource Name', options: { filter: true, sort: true, sortDirection: 'none', customBodyRender: (value, tableMeta) => { const rowData = tableMeta.rowData[0]; return ( <Link className={
resourceName-link-${rowData.resourceId}
} to={getResourceLinkCallback(rowData.resourceId)}Your Environment