mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: Update icon when metadata is changed (#3587)
This was causing names to become empty! Fixes #3586.
This commit is contained in:
@ -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