Fixed adding a reply to a new comment

This commit is contained in:
Simon Backx 2022-07-07 11:24:39 +02:00
parent 5d5e63ba92
commit 25c86689f8

View File

@ -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 {