mirror of https://github.com/logseq/logseq
feat(outliner): add :page/name into ->block-id
parent
e45cb793af
commit
14836c932c
|
@ -26,6 +26,13 @@
|
||||||
(= (first id) :block/uuid))
|
(= (first id) :block/uuid))
|
||||||
(second id)
|
(second id)
|
||||||
|
|
||||||
|
(and
|
||||||
|
(vector? id)
|
||||||
|
(= (first id) :block/name))
|
||||||
|
(let [conn (conn/get-conn false)]
|
||||||
|
(-> (db-outliner/get-by-id conn id)
|
||||||
|
(:block/uuid)))
|
||||||
|
|
||||||
(or (e/entity? id) (map? id))
|
(or (e/entity? id) (map? id))
|
||||||
(let [conn (conn/get-conn false)]
|
(let [conn (conn/get-conn false)]
|
||||||
(-> (db-outliner/get-by-id conn (:db/id id))
|
(-> (db-outliner/get-by-id conn (:db/id id))
|
||||||
|
|
Loading…
Reference in New Issue