Fix wrong partial in Ajax::CommentController#create

This commit is contained in:
Andreas Nedbal 2020-04-29 14:01:48 +02:00
parent b22c7d358c
commit 91a7f7ed33
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Ajax::CommentController < AjaxController
@response[:status] = :okay
@response[:message] = I18n.t('messages.comment.create.okay')
@response[:success] = true
@response[:render] = render_to_string(partial: 'shared/comments', locals: { a: answer })
@response[:render] = render_to_string(partial: 'answerbox/comments', locals: { a: answer })
@response[:count] = answer.comment_count
end