mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-21 15:41:00 +00:00
Fix dup handler
This commit is contained in:
parent
64c68d7b61
commit
7c6ee5dc1a
1 changed files with 0 additions and 4 deletions
|
@ -41,10 +41,6 @@ defmodule LiveBeatsWeb.SongLive.UploadFormComponent do
|
|||
{:noreply, apply_params(socket, params, :validate)}
|
||||
end
|
||||
|
||||
def handle_event("validate", %{"_target" => ["mp3"]}, socket) do
|
||||
{:noreply, drop_invalid_uploads(socket)}
|
||||
end
|
||||
|
||||
def handle_event("save", %{"songs" => params}, socket) do
|
||||
socket = apply_params(socket, params, :insert)
|
||||
%{current_user: current_user} = socket.assigns
|
||||
|
|
Loading…
Reference in a new issue