Skip to content

Commit

Permalink
add missing push_event
Browse files Browse the repository at this point in the history
  • Loading branch information
sorax committed Mar 11, 2025
1 parent f036f31 commit d23644e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/radiator_web/live/components/outline.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ defmodule RadiatorWeb.Components.Outline do
alias RadiatorWeb.OutlineComponents

@impl true
def update(%{event: %NodeInsertedEvent{event_id: event_id, node: node}}, socket) do
def update(%{event: %NodeInsertedEvent{event_id: event_id, node: node, next: next}}, socket) do
socket
|> stream_insert(:nodes, to_change_form(node, %{}))
|> push_event("move_nodes", %{nodes: [next]})
|> focus_self(node.uuid, event_id)
|> reply(:ok)
end
Expand Down

0 comments on commit d23644e

Please # to comment.