mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: pages don't have #Page tag when importing from markdown files
related to https://github.com/logseq/db-test/issues/641
This commit is contained in:
@@ -227,7 +227,8 @@
|
||||
(disj :logseq.class/Page))))
|
||||
(seq page-tags)
|
||||
(merge {:logseq.property/page-tags page-tags})))
|
||||
block))
|
||||
;; ensure page at least have a Page tag
|
||||
(assoc block :block/tags [:logseq.class/Page])))
|
||||
|
||||
(defn- add-uuid-to-page-map [m page-names-to-uuids]
|
||||
(assoc m :block/uuid (get-page-uuid page-names-to-uuids (:block/name m) {:block m})))
|
||||
|
||||
Reference in New Issue
Block a user