Do not freak out just because the is no blooding slogan
This commit is contained in:
parent
036c3bc9ce
commit
ca7d343810
pkg/home
|
@ -65,7 +65,7 @@ func (h *AdminHandler) Handler(user *auth.User, company *auth.Company, conn *dat
|
|||
|
||||
func serveHomeIndex(w http.ResponseWriter, r *http.Request, user *auth.User, company *auth.Company, conn *database.Conn) {
|
||||
f := newHomeForm(company)
|
||||
if err := f.FillFromDatabase(r.Context(), company, conn); err != nil {
|
||||
if err := f.FillFromDatabase(r.Context(), company, conn); err != nil && !database.ErrorIsNotFound(err) {
|
||||
panic(err)
|
||||
}
|
||||
serveHomeIndexWithForm(w, r, user, company, conn, f)
|
||||
|
|
Loading…
Reference in New Issue