summaryrefslogtreecommitdiffstats
path: root/src/components/CommentsList/CommentsList.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-09 23:23:47 +0100
committerGitHub <noreply@github.com>2022-03-09 23:23:47 +0100
commit847b7303278c7894e5d6b055e0e654f6cf809330 (patch)
tree1145c488ee0580eeb0709863c98f6ef2f413f478 /src/components/CommentsList/CommentsList.tsx
parent5b6639a3cf9b6c63045cb82e6ef1a43b0742c367 (diff)
refactor: update graphql queries (#14)
* refactor: replace postBy query postBy is now deprecated in WPGraphQL v1.7 * refactor: update post comments query PostBy is deprecated and it is now possible to use the post ID to query comments. * refactor: update get topic by slug query topicBy is deprecated * refactor: update get thematic by slug query thematicBy is deprecated
Diffstat (limited to 'src/components/CommentsList/CommentsList.tsx')
-rw-r--r--src/components/CommentsList/CommentsList.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/CommentsList/CommentsList.tsx b/src/components/CommentsList/CommentsList.tsx
index 1e7c3e7..4ea2fc2 100644
--- a/src/components/CommentsList/CommentsList.tsx
+++ b/src/components/CommentsList/CommentsList.tsx
@@ -33,7 +33,7 @@ const CommentsList = ({
return data.map((comment) => {
return (
<Comment
- key={comment.commentId}
+ key={comment.databaseId}
articleId={articleId}
comment={comment}
/>