Remove a redundant handling of service’s form while editing

This commit is contained in:
jordi fita mas 2024-01-16 01:25:55 +01:00
parent a0f9c10193
commit c3c349fadf
1 changed files with 0 additions and 6 deletions

View File

@ -234,12 +234,6 @@ func editService(w http.ResponseWriter, r *http.Request, user *auth.User, compan
}
return translateService(ctx, tx, company, f)
})
if ok, err := form.Handle(f, w, r, user); err != nil {
return
} else if !ok {
f.MustRender(w, r, user, company)
return
}
httplib.Redirect(w, r, "/admin/services", http.StatusSeeOther)
}