mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix: Update icon when metadata is changed (#3587)
This was causing names to become empty! Fixes #3586.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user