Skip to content

Commit

Permalink
fix pattern matching broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
sorax committed Sep 10, 2024
1 parent 646fbe9 commit 986ebeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/radiator_web/live/outline_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ defmodule RadiatorWeb.OutlineComponent do
|> reply(:ok)
end

def update(%{event: event, payload: payload}, socket) when event in ["focus", "blur"] do
def update(%{event: %Phoenix.Socket.Broadcast{event: event, payload: payload}}, socket)
when event in ["focus", "blur"] do
socket
|> push_event(event, payload)
|> reply(:ok)
Expand Down

0 comments on commit 986ebeb

Please sign in to comment.