From 88f98a9bb85733fda358c3d24baa1084ad30adff Mon Sep 17 00:00:00 2001 From: Alexandre de Souza Date: Tue, 25 Nov 2025 12:33:31 -0300 Subject: [PATCH] Don't show loading state when selects same file --- lib/livebook_web/live/file_select_component.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/livebook_web/live/file_select_component.ex b/lib/livebook_web/live/file_select_component.ex index 30ba60c67..37a69cfd0 100644 --- a/lib/livebook_web/live/file_select_component.ex +++ b/lib/livebook_web/live/file_select_component.ex @@ -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