mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-12-22 15:16:28 +00:00
Limit number of error messages
This commit is contained in:
parent
0f384a3cb8
commit
d9b5a61702
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ defmodule LiveBeatsWeb.SongLive.UploadFormComponent do
|
|||
socket
|
||||
|> cancel_upload(:mp3, entry.ref)
|
||||
|> drop_changeset(entry.ref)
|
||||
|> update(:error_messages, &(&1 ++ [{entry.client_name, reason}]))
|
||||
|> update(:error_messages, &(Enum.take(&1 ++ [{entry.client_name, reason}], -10)))
|
||||
end
|
||||
|
||||
defp get_entry!(socket, entry_ref) do
|
||||
|
|
Loading…
Reference in a new issue