Browse Source

fix: hide UUID named pages from selection

Tienson Qin 1 năm trước cách đây
mục cha
commit
9ea98e9dd4
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/main/frontend/components/property/value.cljs

+ 2 - 1
src/main/frontend/components/property/value.cljs

@@ -209,7 +209,8 @@
 
                  :else
                  (model/get-all-page-original-names repo))
-               distinct)
+               distinct
+               (remove (fn [p] (util/uuid-string? (str p)))))
         options (map (fn [p] {:value p}) pages)
         string-classes (remove #(= :logseq.class %) classes)
         opts' (cond->