Explorar o código

fix: user can't reverse a class parent decision

Class parent defaults to Root but user can't select it later. This
should be reversible, especially given how much functionality this
affects. Fixes #256
Gabriel Horner hai 10 meses
pai
achega
8cb5fecb91
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deps/db/src/logseq/db/frontend/class.cljs

+ 1 - 1
deps/db/src/logseq/db/frontend/class.cljs

@@ -110,7 +110,7 @@
 (def private-tags
   "Built-in classes that are private and should not be used by a user directly.
   These used to be in block/type"
-  (set/union internal-tags
+  (set/union (disj internal-tags :logseq.class/Root)
              #{:logseq.class/Journal :logseq.class/Whiteboard}))
 
 (def hidden-tags