Reset :show_existing_sessions to the correct default value in single-session config

This commit is contained in:
Jonatan Kłosko 2024-05-08 21:38:18 +08:00
parent 9328123cab
commit d0c00ad8ba

View file

@ -119,8 +119,9 @@ defmodule Livebook.Notebook.AppSettings do
|> cast(attrs, [:zero_downtime]) |> cast(attrs, [:zero_downtime])
|> validate_required([:zero_downtime]) |> validate_required([:zero_downtime])
# Listing sessions is not applicable to single-session apps, # Listing sessions is not applicable to single-session apps,
# since they have a single session at a time # since they have a single session at a time. We reset to
|> put_change(:show_existing_sessions, true) # the default, so we do not persist it unnecessarily
|> put_change(:show_existing_sessions, false)
true -> true ->
changeset changeset