Explorar el Código

fix(ux): sometimes the block children can't be collapsed

charlie hace 1 año
padre
commit
5b0ed592f0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      deps/outliner/src/logseq/outliner/core.cljs

+ 1 - 1
deps/outliner/src/logseq/outliner/core.cljs

@@ -313,7 +313,7 @@
 
       ;; delete heading property for db-based-graphs
       (when (and db-based? (integer? (:logseq.property/heading block-entity))
-                 (not (string/starts-with? (:block/content m) "#")))
+                 (not (some-> (:block/content data) (string/starts-with? "#"))))
         (swap! txs-state (fn [txs] (conj (vec txs) [:db/retract (:db/id block-entity) :logseq.property/heading]))))
 
       this))