소스 검색

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() {