From b43f9cbb2391a11fc9b8ee4fe20d75dabaa14f50 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sat, 19 May 2018 00:00:28 +0300 Subject: [PATCH] fix method addComment --- web/app/common/store.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/app/common/store.js b/web/app/common/store.js index f61d2ba5..aedc0868 100644 --- a/web/app/common/store.js +++ b/web/app/common/store.js @@ -31,10 +31,12 @@ class Store { } addComment(comment) { + const newComment = { comment }; + if (comment.pid) { - this.pasteReply(comment); + this.pasteReply(newComment); } else { - this.pasteComment(comment); + this.pasteComment(newComment); } }