fixed key duplication warning

This commit is contained in:
Andreas 2024-06-27 11:22:28 +02:00
parent a52a002b0f
commit c076918d05

View File

@ -118,11 +118,10 @@ export default function PostTable({
return (
<EntityManagementTable
entityName="Post"
key="der-table"
headings={headings}
>
{postsState.map((post: GetPostsAttributes) => (
<React.Fragment key="postData.id">
<React.Fragment key={`postrow-${post.id}`}>
<tr>
<th key={`rowheading-post-${post.id}`} scope="row">
{post.id}