Skip to content

Commit 18a49ce

Browse files
committed
unpack dataEntry if haskey
1 parent 683a7d5 commit 18a49ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/Serialization.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,12 @@ function _unpackVariableNodeData(
207207
end
208208

209209
# returns a DFGVariable
210-
function unpackVariable(dfg::G,
210+
function unpackVariable(dfg::AbstractDFG,
211211
packedProps::Dict{String, Any};
212212
unpackPPEs::Bool=true,
213213
unpackSolverData::Bool=true,
214-
unpackBigData::Bool=true) where G <: AbstractDFG
214+
unpackBigData::Bool = haskey(packedProps,"dataEntryType") && haskey(packedProps, "dataEntry")
215+
)
215216
#
216217
@debug "Unpacking variable:\r\n$packedProps"
217218
# Version checking.

0 commit comments

Comments
 (0)