Skip to content

Commit

Permalink
fix setupValuerAndSetter
Browse files Browse the repository at this point in the history
  • Loading branch information
KEHyeon committed Feb 15, 2025
1 parent 009bf69 commit 3352be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func (field *Field) setupValuerAndSetter() {
default:
field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) {
v = reflect.Indirect(v)
if v.Kind() == reflect.Interface {
for v.Kind() == reflect.Interface {
v = reflect.Indirect(v)
}
for _, fieldIdx := range field.StructField.Index {
Expand Down

0 comments on commit 3352be8

Please sign in to comment.