Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 589930143
  • Loading branch information
Notebook Kernels Mixer Team authored and copybara-github committed Dec 11, 2023
1 parent 94e1d31 commit 53af65a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sessions/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ func fillInMissingFields(saved, partial *resources.Session) {
partial.ID = saved.ID
}
if partial.Notebook == nil {
partial.Notebook = saved.Notebook
partial.Notebook = make(map[string]string)
for k, v := range saved.Notebook {
partial.Notebook[k] = v
}
}
if partial.Notebook != nil {
if partial.Notebook != nil && len(saved.Notebook) > 0 {
if len(partial.Path) > 0 {
partial.Notebook["path"] = partial.Path
}
Expand Down

0 comments on commit 53af65a

Please sign in to comment.