From 637350e4d152de1346857d645bda8443900ec6f4 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 14 Feb 2022 13:57:06 +0100 Subject: fix: update comments list when a new comment is send The comments list was static before. If an user posted a comment, even after it was approved, the comments list was keeping the old state. --- src/ts/types/comments.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ts/types/comments.ts') diff --git a/src/ts/types/comments.ts b/src/ts/types/comments.ts index 75e7d23..36bd98c 100644 --- a/src/ts/types/comments.ts +++ b/src/ts/types/comments.ts @@ -2,6 +2,14 @@ // Comments query //============================================================================== +export type CommentsByPostId = { + postBy: { + comments: { + nodes: RawComment[]; + }; + }; +}; + export type CommentAuthor = { gravatarUrl: string; name: string; -- cgit v1.2.3