Skip to content

Commit

Permalink
add new command to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Sep 9, 2024
1 parent faa5692 commit 10373d1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/radiator_web/live/outline_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,9 @@ defmodule RadiatorWeb.OutlineComponent do
defp indent(socket, uuid, prev_id) do
user_id = socket.assigns.user_id

Dispatch.move_node(uuid, user_id, generate_event_id(socket.id),
parent_id: prev_id,
prev_id: nil
)
Dispatch.indent_node(uuid, user_id, generate_event_id(socket.id))

# TODO prev_id might not be nil!!
socket
|> push_event("move_node", %{uuid: uuid, parent_id: prev_id, prev_id: nil})
end
Expand Down

0 comments on commit 10373d1

Please sign in to comment.