mirror of https://github.com/logseq/logseq
fix: remove unused code
parent
4e376cd67d
commit
516c47c853
|
@ -63,17 +63,9 @@
|
|||
(when redirect?
|
||||
(route-handler/redirect-to-page! page-uuid))
|
||||
(let [page (db/get-page (or page-uuid title))]
|
||||
(if-let [first-block (ldb/get-first-child @conn (:db/id page))]
|
||||
(do
|
||||
(block-handler/edit-block! first-block :max {:container-id :unknown-container})
|
||||
page)
|
||||
;; create first block and then focus it
|
||||
(p/let [blocks-tx (db-worker-page/build-first-block-tx (:block/uuid page)
|
||||
(or (:format options) (common-config/get-preferred-format config)))
|
||||
_ (ldb/transact! conn blocks-tx {:outliner-op :insert-blocks})
|
||||
first-block (ldb/get-first-child @conn (:db/id page))]
|
||||
(block-handler/edit-block! first-block :max {:container-id :unknown-container})
|
||||
page))))))
|
||||
(when-let [first-block (ldb/get-first-child @conn (:db/id page))]
|
||||
(block-handler/edit-block! first-block :max {:container-id :unknown-container}))
|
||||
page))))
|
||||
|
||||
;; favorite fns
|
||||
;; ============
|
||||
|
|
Loading…
Reference in New Issue