diff --git a/lib/radiator_web/live/outline_component.ex b/lib/radiator_web/live/outline_component.ex index 40ed047e..5cf9532f 100644 --- a/lib/radiator_web/live/outline_component.ex +++ b/lib/radiator_web/live/outline_component.ex @@ -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