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
+1 -1
View File
@@ -83,7 +83,7 @@ msgstr ""
#: lib/music_library_web/live/record_live/index.ex:118
#: lib/music_library_web/live/stats_live/index.ex:60
#: lib/music_library_web/live/stats_live/index.ex:67
#: lib/music_library_web/live/stats_live/index.ex:66
#: lib/music_library_web/live/wishlist_live/index.ex:117
#: lib/music_library_web/live/wishlist_live/index.ex:124
#, elixir-autogen, elixir-format