|
@@ -49,7 +49,9 @@
|
|
|
(when (db-property-util/built-in-has-ref-value? k)
|
|
(when (db-property-util/built-in-has-ref-value? k)
|
|
|
[k v])))
|
|
[k v])))
|
|
|
(into {})))]
|
|
(into {})))]
|
|
|
- (cond-> [(if class? (db-class/build-new-class db page') page')]
|
|
|
|
|
|
|
+ (cond-> (if class? [(db-class/build-new-class db page')
|
|
|
|
|
+ [:db/retract [:block/uuid (:block/uuid page)] :block/tags :logseq.class/Page]]
|
|
|
|
|
+ [page'])
|
|
|
(seq property-vals-tx-m)
|
|
(seq property-vals-tx-m)
|
|
|
(into (vals property-vals-tx-m))
|
|
(into (vals property-vals-tx-m))
|
|
|
true
|
|
true
|
|
@@ -172,7 +174,7 @@
|
|
|
(let [date-formatter (:logseq.property.journal/title-format (entity-plus/entity-memoized db :logseq.class/Journal))
|
|
(let [date-formatter (:logseq.property.journal/title-format (entity-plus/entity-memoized db :logseq.class/Journal))
|
|
|
title (sanitize-title title*)
|
|
title (sanitize-title title*)
|
|
|
types (cond class?
|
|
types (cond class?
|
|
|
- #{:logseq.class/Tag :logseq.class/Page}
|
|
|
|
|
|
|
+ #{:logseq.class/Tag}
|
|
|
whiteboard?
|
|
whiteboard?
|
|
|
#{:logseq.class/Whiteboard}
|
|
#{:logseq.class/Whiteboard}
|
|
|
today-journal?
|
|
today-journal?
|