fixed key duplication warning
This commit is contained in:
parent
a52a002b0f
commit
c076918d05
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user