mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
fix: should create a page instead of tag when either #Page | #Tag
related to https://github.com/logseq/db-test/issues/428
This commit is contained in:
@@ -587,7 +587,12 @@
|
||||
[inline-class-uuid]
|
||||
;; Only 1st class b/c page normally has
|
||||
;; one of and not all these classes
|
||||
(mapv :block/uuid (take 1 classes)))}]
|
||||
(let [tag (db/entity :logseq.class/Tag)
|
||||
classes' (if (= (map :db/id classes) [(:db/id tag)])
|
||||
classes
|
||||
(->> (remove (fn [c] (= (:db/id c) (:db/id tag))) classes)
|
||||
(take 1)))]
|
||||
(mapv :block/uuid classes')))}]
|
||||
(p/let [page (if class?
|
||||
(db-page-handler/<create-class! page create-options)
|
||||
(page-handler/<create! page create-options))]
|
||||
|
||||
Reference in New Issue
Block a user