Fix error on opening feed edit page

This commit is contained in:
Shadowfacts 2019-10-31 15:34:52 -04:00
parent c113ee08ee
commit dbef262779
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ defmodule FrenzyWeb.FeedController do
end
def edit(conn, _params) do
feed = conn.assigns[:feed]
feed = conn.assigns[:feed] |> Repo.preload(:pipeline_stages)
stages = Enum.sort_by(feed.pipeline_stages, fn stage -> stage.index end)
render(conn, "edit.html", %{