feat(outliner): add :page/name into ->block-id

pull/1656/head
defclass 2021-03-25 11:27:21 +08:00
parent e45cb793af
commit 14836c932c
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,13 @@
(= (first id) :block/uuid))
(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))
(let [conn (conn/get-conn false)]
(-> (db-outliner/get-by-id conn (:db/id id))