Skip to content

Commit eff2703

Browse files
committed
fix: lint
1 parent fa86b79 commit eff2703

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

deps/outliner/src/logseq/outliner/validate.cljs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
:payload {:message "Page name can't be blank."
3838
:type :warning}})))))
3939

40-
(def ^:api uneditable-page? ldb/built-in?)
41-
4240
(defn- find-other-ids-with-title-and-tags
4341
"Query that finds other ids given the id to ignore, title to look up and tags to consider"
4442
[entity]

src/main/frontend/handler/db_based/page.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[frontend.state :as state]
1212
[logseq.common.util :as common-util]
1313
[logseq.common.util.page-ref :as page-ref]
14-
[logseq.db]
14+
[logseq.db :as ldb]
1515
[logseq.db.frontend.class :as db-class]
1616
[logseq.db.frontend.content :as db-content]
1717
[logseq.outliner.validate :as outliner-validate]
@@ -49,7 +49,7 @@
4949
(notification/show! (str "A tag with the name \"" (:block/title page-entity) "\" already exists.") :warning false)
5050
(:block/parent page-entity)
5151
(notification/show! "Namespaced pages can't be tags" :error false)
52-
(outliner-validate/uneditable-page? page-entity)
52+
(ldb/built-in? page-entity)
5353
(notification/show! "Built-in pages can't be used as tags" :error)
5454
:else
5555
(let [txs [(db-class/build-new-class (db/get-db)
@@ -64,7 +64,7 @@
6464
[entity]
6565
(cond (db/page-exists? (:block/title entity) #{:logseq.class/Page})
6666
(notification/show! (str "A page with the name \"" (:block/title entity) "\" already exists.") :warning false)
67-
(outliner-validate/uneditable-page? entity)
67+
(ldb/built-in? entity)
6868
(notification/show! "Built-in tags can't be converted to pages" :error)
6969
:else
7070
(if (seq (:logseq.property.class/_extends entity))

0 commit comments

Comments
 (0)