Fix remaining missing subscribed answers in views

This commit is contained in:
Karina Kwiatek 2023-05-07 20:31:32 +02:00
parent 578dd9c6e6
commit bbbff68c7d
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
.tab-content.mt-3
= render "discover/tab/answers", answers: @popular_answers, subscribed_answer_ids: @subscribed_answer_ids
= render "discover/tab/questions", questions: @popular_questions
= render "discover/tab/discussed", comments: @most_discussed
= render "discover/tab/discussed", comments: @most_discussed, subscribed_answer_ids: @subscribed_answer_ids
.col-md-5.col-sm-6
%h2= t(".people.heading")
%p= t(".people.description")

View File

@ -1,3 +1,3 @@
.tab-pane.fade{ role: :tabpanel, id: "comments" }
- comments.each do |a|
= render "answerbox", a: a
= render "answerbox", a: a, subscribed_answer_ids:

View File

@ -1,6 +1,6 @@
= turbo_stream.append "answers" do
- @answers.each do |a|
= render "answerbox", a:
= render "answerbox", a:, subscribed_answer_ids: @subscribed_answer_ids
= turbo_stream.update "paginator" do
- if @more_data_available