fix: can't drag in block values

This commit is contained in:
Tienson Qin
2023-09-13 22:33:40 +08:00
parent 4d10d66735
commit faf6069dac
2 changed files with 2 additions and 2 deletions

View File

@@ -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?

View File

@@ -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'))))]