Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Mar 12, 2024
1 parent 64d0833 commit 5ba074f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ func (v Value) SetProp(property string, value any) error {
return Value{Input: field.Addr().Interface()}.SetProp(property, value)
}
if field.Kind() == reflect.Ptr {
return Value{Input: field.Interface()}.SetProp(property, value)
field = field.Elem()
}
var err = Parse(value).Cast(field)
if err != nil {
Expand Down

0 comments on commit 5ba074f

Please sign in to comment.