mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-05 20:44:30 +08:00
Clear cells indicator after erasing outputs (#1160)
This commit is contained in:
parent
332d79af04
commit
ba77c18616
2 changed files with 4 additions and 3 deletions
|
@ -1301,7 +1301,8 @@ defmodule Livebook.Session.Data do
|
|||
)
|
||||
|> update_every_cell_info(fn
|
||||
%{eval: _} = info ->
|
||||
update_in(info.eval.outputs_batch_number, &(&1 + 1))
|
||||
info = update_in(info.eval.outputs_batch_number, &(&1 + 1))
|
||||
put_in(info.eval.validity, :fresh)
|
||||
|
||||
info ->
|
||||
info
|
||||
|
|
|
@ -2754,8 +2754,8 @@ defmodule Livebook.Session.DataTest do
|
|||
assert {:ok,
|
||||
%{
|
||||
cell_infos: %{
|
||||
"c1" => %{eval: %{validity: :aborted, status: :ready}},
|
||||
"c2" => %{eval: %{validity: :aborted, status: :ready}},
|
||||
"c1" => %{eval: %{validity: :fresh, status: :ready}},
|
||||
"c2" => %{eval: %{validity: :fresh, status: :ready}},
|
||||
"c3" => %{eval: %{validity: :fresh, status: :ready}}
|
||||
},
|
||||
section_infos: %{
|
||||
|
|
Loading…
Add table
Reference in a new issue