1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

add section empty state

This commit is contained in:
Harvey Kandola 2017-03-04 16:54:04 +00:00
parent a7ac034d2c
commit 8d2dcf376f
12 changed files with 80 additions and 248 deletions

View file

@ -12,6 +12,7 @@
package endpoint
import (
"database/sql"
"encoding/json"
"io/ioutil"
"net/http"
@ -121,6 +122,10 @@ func RefreshSections(w http.ResponseWriter, r *http.Request) {
// Grab the page because we need content type and
page, err2 := p.GetPage(pm.PageID)
if err2 == sql.ErrNoRows {
continue
}
if err2 != nil {
writeGeneralSQLError(w, method, err2)
log.IfErr(tx.Rollback())