mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 21:16:26 +08:00
Reset :show_existing_sessions to the correct default value in single-session config
This commit is contained in:
parent
9328123cab
commit
d0c00ad8ba
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue