Fix issues with failed import from stats
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user