Skip to content

Commit

Permalink
Reload refs after upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Feb 1, 2024
1 parent 5810065 commit 2505874
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Serialization/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ function load(io::IO; params::Any = nothing, type::Any = nothing,
jsondict = JSON.parse(json(s.obj), dicttype=Dict{Symbol, Any})
jsondict = upgrade(file_version, jsondict)
s.obj = JSON3.read(json(jsondict))
if !isnothing(s.refs) && haskey(s.obj, refs_key)
s.refs = s.obj[refs_key]
end
end

try
Expand Down

0 comments on commit 2505874

Please sign in to comment.