Fixed adding a reply to a new comment
This commit is contained in:
parent
5d5e63ba92
commit
25c86689f8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user