From bc4fe82ec58d054381fcab4f1ed3252f96514693 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Fri, 19 Aug 2022 14:42:41 +0000 Subject: [PATCH] fix: Update icon when metadata is changed 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 5dc43d11caaa3..217bab3f36330 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)