mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-10 05:25:57 +08:00
Fix warnings (#1077)
This commit is contained in:
parent
241ee94cba
commit
c5152eb941
3 changed files with 11 additions and 8 deletions
|
@ -570,9 +570,12 @@ defmodule Livebook.Runtime.ErlDist.RuntimeServer do
|
||||||
|
|
||||||
defp scan_binding_after_evaluation(state, locator) do
|
defp scan_binding_after_evaluation(state, locator) do
|
||||||
update_in(state.smart_cells, fn smart_cells ->
|
update_in(state.smart_cells, fn smart_cells ->
|
||||||
Map.map(smart_cells, fn
|
Map.new(smart_cells, fn
|
||||||
{ref, %{base_locator: ^locator} = info} -> scan_binding_async(ref, info, state)
|
{ref, %{base_locator: ^locator} = info} ->
|
||||||
{_, info} -> info
|
{ref, scan_binding_async(ref, info, state)}
|
||||||
|
|
||||||
|
other ->
|
||||||
|
other
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1319,8 +1319,8 @@ defmodule Livebook.Session.Data do
|
||||||
%{sources: _} = info ->
|
%{sources: _} = info ->
|
||||||
update_in(
|
update_in(
|
||||||
info.sources,
|
info.sources,
|
||||||
&Map.map(&1, fn {_, source_info} ->
|
&Map.new(&1, fn {key, source_info} ->
|
||||||
put_in(source_info.revision_by_client_pid[client_pid], source_info.revision)
|
{key, put_in(source_info.revision_by_client_pid[client_pid], source_info.revision)}
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1345,9 +1345,9 @@ defmodule Livebook.Session.Data do
|
||||||
%{sources: _} = info ->
|
%{sources: _} = info ->
|
||||||
update_in(
|
update_in(
|
||||||
info.sources,
|
info.sources,
|
||||||
&Map.map(&1, fn {_, source_info} ->
|
&Map.new(&1, fn {key, source_info} ->
|
||||||
{_, source_info} = pop_in(source_info.revision_by_client_pid[client_pid])
|
{_, source_info} = pop_in(source_info.revision_by_client_pid[client_pid])
|
||||||
purge_deltas(source_info)
|
{key, purge_deltas(source_info)}
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ defmodule LivebookWeb.SessionLive.BinComponent do
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<%= cond do %>
|
<%= cond do %>
|
||||||
<%= @bin_entries == [] -> %>
|
<% @bin_entries == [] -> %>
|
||||||
<div class="p-5 py-24 flex flex-col gap-3 space-x-4 items-center">
|
<div class="p-5 py-24 flex flex-col gap-3 space-x-4 items-center">
|
||||||
<div>
|
<div>
|
||||||
<.remix_icon icon="delete-bin-6-line" class="text-gray-700 text-xl bg-gray-100 p-3 rounded-full" />
|
<.remix_icon icon="delete-bin-6-line" class="text-gray-700 text-xl bg-gray-100 p-3 rounded-full" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue