diff --git a/coderd/organizations.go b/coderd/organizations.go index 686b526fa2e02..1796c8f9857a9 100644 --- a/coderd/organizations.go +++ b/coderd/organizations.go @@ -180,6 +180,7 @@ func (api *api) postTemplatesByOrganization(rw http.ResponseWriter, r *http.Requ httpapi.Write(rw, http.StatusNotFound, httpapi.Response{ Message: "template version does not exist", }) + return } if err != nil { httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{