mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
preload tags on update failure
This commit is contained in:
parent
9ea7980e3f
commit
f664be4f85
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@ defmodule PhilomenaWeb.Image.TagController do
|
|||
)
|
||||
|
||||
{:error, :image, changeset, _} ->
|
||||
image =
|
||||
image
|
||||
|> Repo.preload(:tags, force: true)
|
||||
|
||||
conn
|
||||
|> put_view(PhilomenaWeb.ImageView)
|
||||
|> render("_tags.html",
|
||||
|
|
Loading…
Reference in a new issue