mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -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});
|
const data = await api.comments.add({comment});
|
||||||
comment = data.comments[0];
|
comment = data.comments[0];
|
||||||
|
|
||||||
|
// Temporary workaround for missing member relation (bug in API)
|
||||||
const commentStructured = {
|
const commentStructured = {
|
||||||
...comment,
|
...comment,
|
||||||
// Temporary workaround for missing member relation (bug in API)
|
member: state.member,
|
||||||
member: state.member
|
replies: []
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Reference in a new issue