From 0a97a86d7349206d5f3a2ad03d9d48e883f95c9f Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 19 Feb 2023 15:51:33 +0100 Subject: [PATCH] Pass `subscribed_answer_ids` into `answerbox` in Turbo Stream --- app/views/timeline/timeline.turbo_stream.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/timeline/timeline.turbo_stream.haml b/app/views/timeline/timeline.turbo_stream.haml index 561309e6..f1d93222 100644 --- a/app/views/timeline/timeline.turbo_stream.haml +++ b/app/views/timeline/timeline.turbo_stream.haml @@ -1,6 +1,6 @@ = turbo_stream.append "timeline" do - @timeline.each do |answer| - = render "answerbox", a: answer + = render "answerbox", a: answer, subscribed_answer_ids: = turbo_stream.update "paginator" do - if @more_data_available