From 25c86689f8dd3a40898e9cdec6163ae0db66e77c Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Thu, 7 Jul 2022 11:24:39 +0200 Subject: [PATCH] Fixed adding a reply to a new comment --- apps/comments-ui/src/actions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/comments-ui/src/actions.js b/apps/comments-ui/src/actions.js index 80eee9caa1..00d28a312a 100644 --- a/apps/comments-ui/src/actions.js +++ b/apps/comments-ui/src/actions.js @@ -16,10 +16,11 @@ async function addComment({state, api, data: comment}) { const data = await api.comments.add({comment}); comment = data.comments[0]; + // Temporary workaround for missing member relation (bug in API) const commentStructured = { ...comment, - // Temporary workaround for missing member relation (bug in API) - member: state.member + member: state.member, + replies: [] }; return {