chore: minor
This commit is contained in:
parent
46a6dd22d7
commit
7713792d2b
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ func (t *Template) GroupTitle(lang string) string {
|
|||
|
||||
// Defaults returns a map of default values for the template
|
||||
func (t *Template) Defaults(renderMode int) map[string]any {
|
||||
values := make(map[string]any)
|
||||
values := make(map[string]any, len(t.Params))
|
||||
for _, p := range t.Params {
|
||||
values[p.Name] = p.DefaultValue(renderMode)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue