mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
No need to set block ids for db based graphs
This commit is contained in:
@@ -841,14 +841,15 @@
|
||||
"Persist block uuid to file if the uuid is valid, and it's not persisted in file.
|
||||
Accepts a list of uuids."
|
||||
[block-ids]
|
||||
(let [block-ids (remove nil? block-ids)
|
||||
col (map (fn [block-id]
|
||||
(when-let [block (db/entity [:block/uuid block-id])]
|
||||
(when-not (:block/pre-block? block)
|
||||
[block-id :id (str block-id)])))
|
||||
block-ids)
|
||||
col (remove nil? col)]
|
||||
(editor-property/batch-set-block-property! col)))
|
||||
(when-not (config/db-based-graph? (state/get-current-repo))
|
||||
(let [block-ids (remove nil? block-ids)
|
||||
col (map (fn [block-id]
|
||||
(when-let [block (db/entity [:block/uuid block-id])]
|
||||
(when-not (:block/pre-block? block)
|
||||
[block-id :id (str block-id)])))
|
||||
block-ids)
|
||||
col (remove nil? col)]
|
||||
(editor-property/batch-set-block-property! col))))
|
||||
|
||||
(defn copy-block-ref!
|
||||
([block-id]
|
||||
|
||||
Reference in New Issue
Block a user