Fix dup handler

This commit is contained in:
Chris McCord 2021-11-10 21:53:39 -05:00
parent 64c68d7b61
commit 7c6ee5dc1a

View file

@ -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