Skip to content

Commit

Permalink
Update request.go
Browse files Browse the repository at this point in the history
  • Loading branch information
netramali authored Jan 24, 2025
1 parent 5dc5df2 commit 769caae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,9 @@ func unmarshalNode(data *Node, model reflect.Value, included *map[string]*Node)
// Explicit null supplied for the field value
// If a nullable relationship we set the field value to a map with a single entry
if isExplicitNull {
fieldValue.Set(reflect.MakeMapWithSize(fieldValue.Type(), 1))
fieldValue.SetMapIndex(reflect.ValueOf(false), m)
}
fieldValue.Set(reflect.MakeMapWithSize(fieldValue.Type(), 1))
fieldValue.SetMapIndex(reflect.ValueOf(false), m)
}

continue
}
Expand Down

0 comments on commit 769caae

Please sign in to comment.