Преглед на файлове

fix: a new class parent looks blank when it's not

A new class has a parent of :logseq.class/Root but confusingly
showed up as blank both in new class modal and in configure modal
Gabriel Horner преди 1 година
родител
ревизия
7dbc10f795
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/frontend/components/class.cljs

+ 1 - 1
src/main/frontend/components/class.cljs

@@ -16,7 +16,7 @@
         ;; Disallows cyclic hierarchies
         exclude-ids (-> (set (map (fn [id] (:block/uuid (db/entity id))) children-pages))
                         (conj (:block/uuid page))) ; break cycle
-        classes (->> (model/get-all-classes repo {:except-root-class? true})
+        classes (->> (model/get-all-classes repo)
                      (remove (fn [e] (contains? exclude-ids (:block/uuid e)))))
         options (sort-by :label
                          (map (fn [entity] {:label (:block/title entity)