fix(ux): use page uuid instead of the annotations page name

This commit is contained in:
charlie
2024-06-12 15:16:54 +08:00
parent c38679ff45
commit eb0eff6341

View File

@@ -271,8 +271,8 @@
(defn goto-annotations-page!
([current] (goto-annotations-page! current nil))
([current id]
(when-let [name (:key current)]
(rfe/push-state :page {:name (str "hls__" name)} (if id {:anchor (str "block-content-" + id)} nil)))))
(when-let [e (some->> (:key current) (str "hls__") (db-model/get-page))]
(rfe/push-state :page {:name (str (:block/uuid e))} (if id {:anchor (str "block-content-" + id)} nil)))))
(defn open-lightbox
[e]