Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
yk-eukarya committed Oct 31, 2024
1 parent 1aa8ad6 commit 1dd39a2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server/internal/adapter/integration/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ func appendGroupFieldsDefaultValue(sp *schema.Package, res []interfaces.ItemFiel
continue
}
igID := id.NewItemGroupID()
var v any
v = []any{igID}
if !gsf.Multiple() {
v = igID
var v any = igID
if gsf.Multiple() {
v = []any{igID}
}
res = append(res, interfaces.ItemFieldParam{
Field: gsf.ID().Ref(),
Expand Down

0 comments on commit 1dd39a2

Please sign in to comment.