浏览代码

fix: use block uuid instead of title when referencing a block

fixes https://github.com/logseq/db-test/issues/33
related to https://github.com/logseq/db-test/issues/40
Tienson Qin 1 年之前
父节点
当前提交
1b6cbeabec
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/main/frontend/handler/page.cljs

+ 0 - 2
src/main/frontend/handler/page.cljs

@@ -395,8 +395,6 @@
               chosen' (string/replace-first chosen (str (t :new-page) " ") "")
               ref-text (if (and (de/entity? chosen-result) (not (ldb/page? chosen-result)))
                          (cond
-                           (and db-based? (seq (:block/tags chosen-result)))
-                           (page-ref/->page-ref (:block/title chosen-result))
                            db-based?
                            (page-ref/->page-ref (:block/uuid chosen-result))
                            :else