Skip to content

Commit

Permalink
fix(server): check group schema field before handling inner group fie…
Browse files Browse the repository at this point in the history
…lds (#1036)

* check group schema field before handling inner group fields

* fix operator
  • Loading branch information
mimoham24 authored and yk-eukarya committed Oct 1, 2024
1 parent d9280e9 commit 0dd9526
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/internal/usecase/interactor/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,9 @@ func (i Item) handleGroupFields(ctx context.Context, params []interfaces.ItemFie
var groupSchemas schema.List
for _, field := range itemFields.FieldsByType(value.TypeGroup) {
sf := s.Field(field.FieldID())
if sf == nil {
continue
}
var fieldGroup *schema.FieldGroup
sf.TypeProperty().Match(schema.TypePropertyMatch{
Group: func(f *schema.FieldGroup) {
Expand Down

0 comments on commit 0dd9526

Please sign in to comment.