mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-25 07:16:45 +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])
|
||||
|> validate_required([:zero_downtime])
|
||||
# Listing sessions is not applicable to single-session apps,
|
||||
# since they have a single session at a time
|
||||
|> put_change(:show_existing_sessions, true)
|
||||
# since they have a single session at a time. We reset to
|
||||
# the default, so we do not persist it unnecessarily
|
||||
|> put_change(:show_existing_sessions, false)
|
||||
|
||||
true ->
|
||||
changeset
|
||||
|
|
Loading…
Reference in a new issue