Browse Source

fix: Page and Tag with same name defaults to using Page

fixes https://github.com/logseq/db-test/issues/2
Tienson Qin 1 year ago
parent
commit
ce3503dd77
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/handler/page.cljs

+ 1 - 1
src/main/frontend/handler/page.cljs

@@ -347,7 +347,7 @@
               chosen (:block/title chosen-result)
               class? (and db-based? hashtag?
                           (or (string/includes? chosen (str (t :new-tag) " "))
-                              (ldb/class? (db/get-page chosen))))
+                              (ldb/class? chosen-result)))
               chosen (-> chosen
                          (string/replace-first (str (t :new-tag) " ") "")
                          (string/replace-first (str (t :new-page) " ") ""))