mirror of
https://github.com/logseq/logseq.git
synced 2026-05-25 05:04:24 +00:00
fix: can't drag in block values
This commit is contained in:
@@ -290,7 +290,7 @@
|
||||
[repo block property value block-cp editor-box opts]
|
||||
(let [parent (db/entity [:block/uuid value])
|
||||
parent (db/sub-block (:db/id parent))
|
||||
children (:block/_parent parent)
|
||||
children (model/sort-by-left (:block/_parent parent) parent)
|
||||
children-count (count (:block/_parent parent))
|
||||
empty-block? (or (nil? parent) (zero? children-count))]
|
||||
(when empty-block?
|
||||
|
||||
@@ -284,7 +284,7 @@
|
||||
(:block/uuid original)))
|
||||
(edit-block! linked :max (:block/uuid linked) {})))
|
||||
|
||||
;; sanitized page name changed
|
||||
;; sanitized page name changed
|
||||
(when-let [title (get-in block' [:block/properties :title])]
|
||||
(if (string? title)
|
||||
(when-let [old-page-name (:block/name (db/entity (:db/id (:block/page block'))))]
|
||||
|
||||
Reference in New Issue
Block a user