mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-12-09 05:05:55 +08:00
Don't show loading state when selects same file
This commit is contained in:
parent
1f6b12e047
commit
88f98a9bb8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue