ソースを参照

fix: avoid empty tags

Yeuoly 9 ヶ月 前
コミット
8bc6f095fd
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4 0
      internal/types/entities/plugin_entities/plugin_declaration.go

+ 4 - 0
internal/types/entities/plugin_entities/plugin_declaration.go

@@ -287,6 +287,10 @@ func (p *PluginDeclaration) FillInDefaultValues() {
 			p.Model.Description = &deep_copied_description
 		}
 	}
+
+	if p.Tags == nil {
+		p.Tags = []PluginTag{}
+	}
 }
 
 func init() {