Fix issues with failed import from stats

This commit is contained in:
Claudio Ortolina
2024-11-10 13:16:41 +00:00
parent 7048e86990
commit b247cb2536
2 changed files with 3 additions and 5 deletions
@@ -58,14 +58,12 @@ defmodule MusicLibraryWeb.StatsLive.Index do
|> put_flash(
:error,
gettext("Error importing record") <> "," <> inspect(changeset.errors)
)
|> push_patch(to: ~p"/wishlist")}
)}
{:error, reason} ->
{:noreply,
socket
|> put_flash(:error, gettext("Error importing record") <> "," <> inspect(reason))
|> push_patch(to: ~p"/wishlist")}
|> put_flash(:error, gettext("Error importing record") <> "," <> inspect(reason))}
end
end