mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix(regression): built-in pages can be turned into tags
Removing this check in 6f8d2a39f7
reintroduced https://github.com/logseq/db-test/issues/333.
To reproduce, use a built-in page as an inline tag. For example, type
'o1 #Library' in a block and then press escape
This commit is contained in:
5
deps/outliner/src/logseq/outliner/core.cljs
vendored
5
deps/outliner/src/logseq/outliner/core.cljs
vendored
@@ -327,6 +327,11 @@
|
||||
(:block/title m*)
|
||||
(not= (:block/title m*) (:block/title block-entity)))
|
||||
(outliner-validate/validate-block-title db (:block/title m*) block-entity))
|
||||
_ (when (and db-based? (seq (:block/tags m*)))
|
||||
;; Add built-in? b/c it's not available here
|
||||
(doseq [tag (map #(assoc % :logseq.property/built-in?
|
||||
(contains? sqlite-create-graph/built-in-pages-names (:block/title %))) (:block/tags m*))]
|
||||
(outliner-validate/validate-built-in-pages tag {:message "Built-in page can't be a tag"})))
|
||||
m (cond-> m*
|
||||
db-based?
|
||||
(dissoc :block/format :block/pre-block? :block/priority :block/marker :block/properties-order))]
|
||||
|
||||
Reference in New Issue
Block a user