mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: page namespace
This commit is contained in:
@@ -171,11 +171,19 @@
|
||||
(assoc page :block/namespace
|
||||
[:block/uuid (:block/uuid (nth txs (dec i)))])))
|
||||
txs)
|
||||
last-txs (first (build-page-tx repo format properties (last pages) journal? whiteboard?))
|
||||
last-txs (build-page-tx repo format properties (last pages) journal? whiteboard?)
|
||||
last-txs (if (seq txs)
|
||||
[(assoc last-txs :block/namespace [:block/uuid (:block/uuid (last txs))])]
|
||||
[last-txs])
|
||||
txs (concat txs last-txs)]
|
||||
(update last-txs 0
|
||||
(fn [p]
|
||||
(assoc p :block/namespace [:block/uuid (:block/uuid (last txs))])))
|
||||
last-txs)
|
||||
txs (concat
|
||||
(when (and rename? uuid)
|
||||
(when-let [e (db/entity [:block/uuid uuid])]
|
||||
[[:db/retract (:db/id e) :block/namespace]
|
||||
[:db/retract (:db/id e) :block/refs]]))
|
||||
txs
|
||||
last-txs)]
|
||||
(when (seq txs)
|
||||
(util/pprint txs)
|
||||
(db/transact! txs)))
|
||||
|
||||
Reference in New Issue
Block a user