mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
fix: search for porperty block values leads to hidden page
Fixes LOG-2647
This commit is contained in:
@@ -233,3 +233,12 @@
|
||||
outliner-core/block-with-timestamps)]
|
||||
{:page page-tx
|
||||
:blocks [new-block]}))
|
||||
|
||||
(defn get-property-block-created-block
|
||||
"Get the root block that created this property block."
|
||||
[eid]
|
||||
(let [b (db/entity eid)
|
||||
from (get-in b [:block/metadata :created-from-block])]
|
||||
(if from
|
||||
(get-property-block-created-block [:block/uuid from])
|
||||
(:db/id b))))
|
||||
|
||||
Reference in New Issue
Block a user