diff --git a/server/internal/adapter/integration/convert.go b/server/internal/adapter/integration/convert.go index 4a5097e20..7ee7667eb 100644 --- a/server/internal/adapter/integration/convert.go +++ b/server/internal/adapter/integration/convert.go @@ -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(),