diff --git a/lib/livebook/runtime/erl_dist/runtime_server.ex b/lib/livebook/runtime/erl_dist/runtime_server.ex index 64ddf7643..b28883ddd 100644 --- a/lib/livebook/runtime/erl_dist/runtime_server.ex +++ b/lib/livebook/runtime/erl_dist/runtime_server.ex @@ -570,9 +570,12 @@ defmodule Livebook.Runtime.ErlDist.RuntimeServer do defp scan_binding_after_evaluation(state, locator) do update_in(state.smart_cells, fn smart_cells -> - Map.map(smart_cells, fn - {ref, %{base_locator: ^locator} = info} -> scan_binding_async(ref, info, state) - {_, info} -> info + Map.new(smart_cells, fn + {ref, %{base_locator: ^locator} = info} -> + {ref, scan_binding_async(ref, info, state)} + + other -> + other end) end) end diff --git a/lib/livebook/session/data.ex b/lib/livebook/session/data.ex index b08e52326..cdf390661 100644 --- a/lib/livebook/session/data.ex +++ b/lib/livebook/session/data.ex @@ -1319,8 +1319,8 @@ defmodule Livebook.Session.Data do %{sources: _} = info -> update_in( info.sources, - &Map.map(&1, fn {_, source_info} -> - put_in(source_info.revision_by_client_pid[client_pid], source_info.revision) + &Map.new(&1, fn {key, source_info} -> + {key, put_in(source_info.revision_by_client_pid[client_pid], source_info.revision)} end) ) @@ -1345,9 +1345,9 @@ defmodule Livebook.Session.Data do %{sources: _} = info -> update_in( 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]) - purge_deltas(source_info) + {key, purge_deltas(source_info)} end) ) diff --git a/lib/livebook_web/live/session_live/bin_component.ex b/lib/livebook_web/live/session_live/bin_component.ex index 7aed959a3..80b3ee46b 100644 --- a/lib/livebook_web/live/session_live/bin_component.ex +++ b/lib/livebook_web/live/session_live/bin_component.ex @@ -51,7 +51,7 @@ defmodule LivebookWeb.SessionLive.BinComponent do <% end %> <%= cond do %> - <%= @bin_entries == [] -> %> + <% @bin_entries == [] -> %>
<.remix_icon icon="delete-bin-6-line" class="text-gray-700 text-xl bg-gray-100 p-3 rounded-full" />