From 985eea6099c7ce16e8acad96d424e327f108c9b8 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Fri, 19 Aug 2022 10:11:54 -0500 Subject: [PATCH] fix: Update icon when metadata is changed (#3587) This was causing names to become empty! Fixes #3586. --- coderd/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coderd/templates.go b/coderd/templates.go index 5dc43d11ca..217bab3f36 100644 --- a/coderd/templates.go +++ b/coderd/templates.go @@ -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)