Compare commits

..

10 Commits

View File

@@ -51,11 +51,7 @@ func IndexTemplateList(conf *cfg.Config) error {
return fmt.Errorf("failed to unmarshal meta json data: %w", err) return fmt.Errorf("failed to unmarshal meta json data: %w", err)
} }
var prio int64 table.Entries[idx] = []any{tpl.Name, desc, tpl.IndexTemplate.Priority}
if tpl.IndexTemplate.Priority != nil {
prio = *tpl.IndexTemplate.Priority
}
table.Entries[idx] = []any{tpl.Name, desc, prio}
} }
table.Sort() table.Sort()