Skip to content

Commit 985eea6

Browse files
authored
fix: Update icon when metadata is changed (#3587)
This was causing names to become empty! Fixes #3586.
1 parent c417115 commit 985eea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/templates.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ func (api *API) patchTemplateMeta(rw http.ResponseWriter, r *http.Request) {
431431
desc = template.Description
432432
}
433433
if icon == "" {
434-
name = template.Icon
434+
icon = template.Icon
435435
}
436436
if maxTTL == 0 {
437437
maxTTL = time.Duration(template.MaxTtl)

0 commit comments

Comments
 (0)