mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-10 15:04:25 +08:00
Fix saving for notebooks loaded from a URL (#2300)
This commit is contained in:
parent
0dca78ecc8
commit
14aca09470
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue