mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
add section empty state
This commit is contained in:
parent
a7ac034d2c
commit
8d2dcf376f
12 changed files with 80 additions and 248 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue