Skip to content

Commit

Permalink
add nil
Browse files Browse the repository at this point in the history
  • Loading branch information
netramali committed Feb 3, 2025
1 parent a19fc77 commit 670d9bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ func visitModelNodeRelation(model any, annotation string, args []string, node *N
} else {
node.Relationships[args[1]] = json.RawMessage("{\"data\":null}")
}
return nil
} else if fieldValue.MapIndex(reflect.ValueOf(true)).IsValid() {
// handle value
fieldValue = fieldValue.MapIndex(reflect.ValueOf(true))
Expand Down

0 comments on commit 670d9bf

Please sign in to comment.