Skip to content

Commit

Permalink
Reset :show_existing_sessions to the correct default value in single-…
Browse files Browse the repository at this point in the history
…session config
  • Loading branch information
jonatanklosko committed May 8, 2024
1 parent 9328123 commit d0c00ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/livebook/notebook/app_settings.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0c00ad

Please sign in to comment.