rsuite/rsuite-table

Getting issues Accessing Nested Properties

MosesWakanyi opened this issue · 5 comments

Hello,

This property seems not to work now. What has changed?

Product Name
Gomez commented

Same here, was it working before? Tested with 3.4.x, but still the same.

Here is my code

    <Cell dataKey="node.name" />

data:

          "node": {
            "id": "174692e2-1f76-5fc2-9b78-4b155314c7b2",
            "name": "Accessibility",
            "version": "1.5.0",
            "desc": "Provides multiple accessibilities options to ease your use of nextcloud.",
            "added": false,
            "updated": false
          }
        },
        {
          "node": {
            "id": "b4f5c18e-30cc-5f2e-b0a4-c058f3dd2e3c",
            "name": "Activity",
            "version": "2.12.0",
            "desc": "Provides an activity feed showing your file changes and other interesting things going on in your Nextcloud.",
            "added": false,
            "updated": false
          }
        },

Forced to use this, wondering whether it's efficient!
Cell>
{(rowData, rowIndex) => {
return rowData.node.name;
}}

Currently does not support the nested properties.
@MosesWakanyi The solution you use is effective.

<Column width={200}>
  <HeaderCell>Name</HeaderCell>
  <Cell>{rowData => rowData.node.name}</Cell>
</Column>
Gomez commented

Thanks works. Added a note in the readme: #159

This workaround no longer appears to be working