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) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy