diff options
Diffstat (limited to 'vnext/src/ui/Thread.js')
-rw-r--r-- | vnext/src/ui/Thread.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js index d00c197e..979ef72b 100644 --- a/vnext/src/ui/Thread.js +++ b/vnext/src/ui/Thread.js @@ -67,7 +67,8 @@ export default function Thread(props) { let postComment = (template) => { const { body, attach } = template; let commentAction = editing.rid ? update(mid, editing.rid, body) : comment(mid, active, body, attach); - commentAction.then(() => { + commentAction.then((res) => { + console.log(res); setEditing(emptyMessage); loadReplies(); }) @@ -75,7 +76,7 @@ export default function Thread(props) { }; let startEditing = (reply) => { - setActive(reply.replyto); + setActive(reply.to.rid || 0); setEditing(reply); }; |