Skip to content

Commit c5cdad3

Browse files
committed
fix: unwrap s in tovar
1 parent ffffe5a commit c5cdad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parameters.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ toparam(s::Num) = wrap(toparam(value(s)))
6262
6363
Maps the variable to an unknown.
6464
"""
65-
tovar(s::Union{Symbolic, Symbolics.Arr}) = setmetadata(s, MTKVariableTypeCtx, VARIABLE)
65+
tovar(s::Union{Symbolic, Symbolics.Arr}) = setmetadata(unwrap(s), MTKVariableTypeCtx, VARIABLE)
6666
tovar(s::Num) = Num(tovar(value(s)))
6767

6868
"""

0 commit comments

Comments
 (0)