Skip to content

Commit

Permalink
fixup remove todo tags
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Apr 9, 2024
1 parent a577bb7 commit 2d530d0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/radiator_web/live/episode_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ defmodule RadiatorWeb.EpisodeLive.Index do
|> reply(:noreply)
end

# FIXME missing optional parent_id and prev_id
def handle_event("create_node", %{"temp_id" => temp_id} = params, socket) do
user = socket.assigns.current_user
episode = socket.assigns.selected_episode
attrs = Map.merge(params, %{"creator_id" => user.id, "episode_id" => episode.id})

# TODO add again, socket.id
case Outline.insert_node(attrs) do
{:ok, node} -> socket |> reply(:reply, Map.put(node, :temp_id, temp_id))
_ -> socket |> reply(:noreply)
Expand Down

0 comments on commit 2d530d0

Please sign in to comment.