Skip to content

Commit

Permalink
return nil if no obj vals for PickMultipleObjectValues custom field
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenleach committed Oct 11, 2024
1 parent f38d85b commit fe032a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/types/ticket/custom_fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func GetCustomFieldValue(field *v2.TicketCustomField) (interface{}, error) {
case *v2.TicketCustomField_PickMultipleObjectValues:
objVals := v.PickMultipleObjectValues.GetValues()
if len(objVals) == 0 {
return objVals, nil
return nil, nil
}
return objVals, nil

Expand Down Expand Up @@ -337,7 +337,7 @@ func GetDefaultCustomFieldValue(field *v2.TicketCustomField) (interface{}, error
case *v2.TicketCustomField_PickMultipleObjectValues:
objVals := v.PickMultipleObjectValues.GetDefaultValues()
if len(objVals) == 0 {
return objVals, nil
return nil, nil
}
return objVals, nil

Expand Down

0 comments on commit fe032a8

Please sign in to comment.