From 847b7303278c7894e5d6b055e0e654f6cf809330 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Wed, 9 Mar 2022 23:23:47 +0100
Subject: 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
---
 src/components/CommentsList/CommentsList.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/CommentsList/CommentsList.tsx')

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}
         />
-- 
cgit v1.2.3

