mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed adding a reply to a new comment
This commit is contained in:
parent
5d5e63ba92
commit
25c86689f8
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue