Yuki Takei 1 год назад
Родитель
Сommit
4dab8cc843
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      apps/app/src/server/routes/comment.js

+ 3 - 3
apps/app/src/server/routes/comment.js

@@ -368,9 +368,9 @@ module.exports = function(crowi, app) {
   api.update = async function(req, res) {
     const { commentForm } = req.body;
 
-    const commentStr = commentForm.comment;
-    const commentId = commentForm.comment_id;
-    const revision = commentForm.revision_id;
+    const commentStr = commentForm?.comment;
+    const commentId = commentForm?.comment_id;
+    const revision = commentForm?.revision_id;
 
     if (commentStr === '') {
       return res.json(ApiResponse.error('Comment text is required'));