fix: display parent in editor mode

This commit is contained in:
Tienson Qin
2024-09-13 22:36:24 +08:00
parent 37e59b222d
commit 4b3534476c
7 changed files with 43 additions and 15 deletions

View File

@@ -290,9 +290,9 @@
block-id (when (and (not (config/db-based-graph? repo)) (map? properties))
(get properties :id))
content (if (config/db-based-graph? repo)
title
(:block/title-with-refs-parent (db/entity (:db/id block)))
(-> (property-file/remove-built-in-properties-when-file-based repo format title)
(drawer/remove-logbook)))]
(drawer/remove-logbook)))]
(cond
(another-block-with-same-id-exists? uuid block-id)
(notification/show!