fix: do not zoom-in non-exist block

This commit is contained in:
Weihua Lu
2021-05-17 11:59:04 +08:00
parent 82a4183102
commit eb7c26dd96

View File

@@ -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)))