mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
fix: do not zoom-in non-exist block
This commit is contained in:
@@ -1064,7 +1064,8 @@
|
||||
|
||||
(defn zoom-in! []
|
||||
(if-let [block (state/get-edit-block)]
|
||||
(when-let [id (:block/uuid block)]
|
||||
(when-let [id (-> (db/entity [:block/uuid (:block/uuid block)])
|
||||
:block/uuid)]
|
||||
(route-handler/redirect! {:to :page
|
||||
:path-params {:name (str id)}}))
|
||||
(js/window.history.forward)))
|
||||
|
||||
Reference in New Issue
Block a user