mirror of https://github.com/logseq/logseq
fix: show blank page error to user instead of silent failure
also fix outdated lintpull/11491/head
parent
dd224b32c5
commit
7a96fc0e32
|
@ -263,7 +263,11 @@
|
|||
m* (if (and db-based? page-title-changed?)
|
||||
(let [page-name (common-util/page-name-sanity-lc (:block/title m*))]
|
||||
(when (string/blank? page-name)
|
||||
(throw (ex-info "Page title shouldn't be blank" m*)))
|
||||
(throw (ex-info "Page title can't be blank"
|
||||
{:type :notification
|
||||
:payload {:message "Page title can't be blank"
|
||||
:type :error}
|
||||
:node m*})))
|
||||
(assoc m* :block/name page-name))
|
||||
m*)
|
||||
m (cond-> m*
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
"electron.db"
|
||||
"frontend.handler.db-based."
|
||||
"frontend.worker.handler.page.db-based"
|
||||
"frontend.components.property" "frontend.components.property-v2" "frontend.components.class"
|
||||
"frontend.components.property" "frontend.components.class"
|
||||
"frontend.components.db-based" "frontend.components.objects"]))
|
||||
|
||||
(def file-graph-ns
|
||||
|
@ -38,7 +38,6 @@
|
|||
"src/main/frontend/worker/handler/page/db_based"
|
||||
"src/main/frontend/components/class.cljs"
|
||||
"src/main/frontend/components/property.cljs"
|
||||
"src/main/frontend/components/property/config.cljs"
|
||||
"src/main/frontend/components/property"
|
||||
"src/main/frontend/components/objects.cljs"
|
||||
"src/main/frontend/components/db_based"
|
||||
|
|
Loading…
Reference in New Issue