aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Thread.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/Thread.js')
-rw-r--r--vnext/src/ui/Thread.js5
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);
};