Skip to content

Commit

Permalink
Fix saving for notebooks loaded from a URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Oct 24, 2023
1 parent 0dca78e commit 174241e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defmodule LivebookWeb.SessionLive.PersistenceComponent do
case assigns.session.origin do
# If it's a forked notebook, default to the same folder
{:file, file} -> FileSystem.File.containing_dir(file)
nil -> Livebook.Settings.default_dir(assigns.hub)
_ -> Livebook.Settings.default_dir(assigns.hub)
end
end)
|> assign_new(:saved_file, fn -> file end)
Expand Down

0 comments on commit 174241e

Please sign in to comment.