fixed key duplication warning
This commit is contained in:
parent
a52a002b0f
commit
c076918d05
@ -118,11 +118,10 @@ export default function PostTable({
|
|||||||
return (
|
return (
|
||||||
<EntityManagementTable
|
<EntityManagementTable
|
||||||
entityName="Post"
|
entityName="Post"
|
||||||
key="der-table"
|
|
||||||
headings={headings}
|
headings={headings}
|
||||||
>
|
>
|
||||||
{postsState.map((post: GetPostsAttributes) => (
|
{postsState.map((post: GetPostsAttributes) => (
|
||||||
<React.Fragment key="postData.id">
|
<React.Fragment key={`postrow-${post.id}`}>
|
||||||
<tr>
|
<tr>
|
||||||
<th key={`rowheading-post-${post.id}`} scope="row">
|
<th key={`rowheading-post-${post.id}`} scope="row">
|
||||||
{post.id}
|
{post.id}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user