Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc4fe82

Browse files
committed
fix: Update icon when metadata is changed
This was causing names to become empty! Fixes #3586.
1 parent 544bf01 commit bc4fe82

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)