Don't show loading state when selects same file

This commit is contained in:
Alexandre de Souza 2025-11-25 12:33:31 -03:00
parent 1f6b12e047
commit 88f98a9bb8
No known key found for this signature in database
GPG key ID: E39228FFBA346545

View file

@ -547,7 +547,7 @@ defmodule LivebookWeb.FileSelectComponent do
end
send_event(socket.assigns.target, {:set_file, file, info})
{:noreply, assign(socket, loading: true)}
{:noreply, assign(socket, loading: socket.assigns.file.path != path)}
end
def handle_event("clear_error", %{}, socket) do