From 380f7dce0e401b7b8874cbe8bbac4c914019ae4e Mon Sep 17 00:00:00 2001 From: pyshx Date: Mon, 30 Oct 2023 10:23:26 +0530 Subject: [PATCH] fix --- server/pkg/plugin/manifest/convert.go | 6 ++++-- server/pkg/plugin/manifest/schema_gen.go | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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"`