diff --git a/lib/live_beats_web/live/song_live/upload_form_component.ex b/lib/live_beats_web/live/song_live/upload_form_component.ex index 6c1d1fd..102b1ba 100644 --- a/lib/live_beats_web/live/song_live/upload_form_component.ex +++ b/lib/live_beats_web/live/song_live/upload_form_component.ex @@ -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