Skip to content

Commit d4f00ce

Browse files
committed
fixup! Show default proxy in proxy list
1 parent e2356b2 commit d4f00ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enterprise/coderd/workspaceproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (api *API) patchWorkspaceProxy(rw http.ResponseWriter, r *http.Request) {
136136
var updatedProxy database.WorkspaceProxy
137137
if proxy.ID.String() == deploymentIDStr {
138138
// User is editing the default primary proxy.
139-
if req.Name != "" {
139+
if req.Name != "" && req.Name != proxy.Name {
140140
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
141141
Message: "Cannot update name of default primary proxy, did you mean to update the 'display name'?",
142142
Validations: []codersdk.ValidationError{

0 commit comments

Comments
 (0)