Table.Column not render my relation StrapiV4
hello guys, good night
I trying display a relation in <Table.Column> but im not getting
the dataSource from tableProps is correct but not render value
![No description](https://cdn.answeroverflow.com/1078485118596952146/image.png)
![No description](https://cdn.answeroverflow.com/1078485118999597107/image.png)
10 Replies
manual-pink•2y ago
Hello @gvt3ch can you try to pass
key
prop to the TableProps as well?flat-fuchsia•2y ago
key="[doencas]["id"]" ?
i passed and not work
flat-fuchsia•2y ago
![No description](https://cdn.answeroverflow.com/1078633612930453525/image.png)
flat-fuchsia•2y ago
I using strapi v4 dataprovider with antd design
manual-pink•2y ago
Please see the documentation here: https://refine.dev/docs/advanced-tutorials/data-provider/strapi-v4/
I guess you also need to pass
metada.populate: ["doencas"]
Strapi-v4 | refine
refine supports the features that come with Strapi-v4.
flat-fuchsia•2y ago
i passed
in useTable by antd design
manual-pink•2y ago
Can you provide a minimal reproducable example on stackblitz or something similar? It's hard to tell without seeing the code 🙏
flat-fuchsia•2y ago
hey
in one to one relation worked succesfull
but one to many not
manual-pink•2y ago
Hey @gvt3ch
render={(_, record) => (
<Space>
<EditButton
hideText
size="small"
recordItemId={record.id}
/>
<DeleteButton
hideText
size="small"
recordItemId={record.id}
/>
</Space>
)}
Can you try with custom render like this
Hello @gvt3ch , did the previous message fix your issue?
flat-fuchsia•2y ago
hello
yes, fixed
thank u