diff --git a/server/pkg/plugin/manifest/convert.go b/server/pkg/plugin/manifest/convert.go index d0de28d70..738c50b0f 100644 --- a/server/pkg/plugin/manifest/convert.go +++ b/server/pkg/plugin/manifest/convert.go @@ -285,10 +285,12 @@ func (i PropertySchemaGroup) schemaGroup(tg *TranslatedPropertySchemaGroup) (*pr title = title.WithDefault(i.Title) var collection i18n.String - if tg != nil { + if tg != nil && tg.Collection != nil { collection = tg.Collection.Clone() } - collection = collection.WithDefault(*i.Collection) + if i.Collection != nil { + collection = collection.WithDefault(*i.Collection) + } var representativeField *property.FieldID if i.RepresentativeField != nil { diff --git a/server/pkg/plugin/manifest/schema_gen.go b/server/pkg/plugin/manifest/schema_gen.go index c793dc94c..b507b4afc 100644 --- a/server/pkg/plugin/manifest/schema_gen.go +++ b/server/pkg/plugin/manifest/schema_gen.go @@ -1,6 +1,6 @@ package manifest -// generated by "/var/folders/rm/rg5tw72s00bg6vlfw3jg7tm40000gn/T/go-build1900402475/b001/exe/schematyper -o schema_gen.go --package manifest ../../../schemas/plugin_manifest.json" -- DO NOT EDIT +// generated by "/var/folders/rm/rg5tw72s00bg6vlfw3jg7tm40000gn/T/go-build3463142305/b001/exe/schematyper -o schema_gen.go --package manifest ../../../schemas/plugin_manifest.json" -- DO NOT EDIT type Choice struct { Icon string `json:"icon,omitempty"`