fix: Update icon when metadata is changed (#3587)

This was causing names to become empty! Fixes #3586.
This commit is contained in:
Kyle Carberry
2022-08-19 10:11:54 -05:00
committed by GitHub
parent c417115eb1
commit 985eea6099

View File

@ -431,7 +431,7 @@ func (api *API) patchTemplateMeta(rw http.ResponseWriter, r *http.Request) {
desc = template.Description
}
if icon == "" {
name = template.Icon
icon = template.Icon
}
if maxTTL == 0 {
maxTTL = time.Duration(template.MaxTtl)