diff --git a/app/controllers/cards/comments/reactions_controller.rb b/app/controllers/cards/comments/reactions_controller.rb index 5eee8122f..2d9a55603 100644 --- a/app/controllers/cards/comments/reactions_controller.rb +++ b/app/controllers/cards/comments/reactions_controller.rb @@ -34,11 +34,11 @@ class Cards::Comments::ReactionsController < ApplicationController end def broadcast_create(reaction) - reaction.broadcast_append_to @comment, :comments, + reaction.broadcast_append_to @comment, :reactions, target: "reactions_comment_#{@comment.id}", partial: "cards/comments/reactions/reaction", locals: { comment: @comment } end def broadcast_remove(reaction) - reaction.broadcast_remove_to @comment, :comments + reaction.broadcast_remove_to @comment, :reactions end end diff --git a/app/views/cards/comments/reactions/_reactions.html.erb b/app/views/cards/comments/reactions/_reactions.html.erb index 5c9b9f846..8b86e4db0 100644 --- a/app/views/cards/comments/reactions/_reactions.html.erb +++ b/app/views/cards/comments/reactions/_reactions.html.erb @@ -1,5 +1,6 @@ <%= turbo_frame_tag comment, :reacting do %> - <%= turbo_stream_from comment, :comments %> + <%= turbo_stream_from comment, :reactions %> +