Browse Source

fix: numbered list in db graphs

Gabriel Horner 1 year ago
parent
commit
514b5b5d56
1 changed files with 4 additions and 4 deletions
  1. 4 4
      deps/outliner/src/logseq/outliner/core.cljs

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

@@ -650,11 +650,11 @@
          (let [list? (and (some? (:block/uuid block))
                           (nil? (list-type-fn block)))]
            (cond-> block
-             (and db-based? list?)
-             (assoc k list-type)
-
              list?
-             (update :block/properties assoc k list-type)
+             ((fn [b]
+                (if db-based?
+                  (assoc b k list-type)
+                  (update b :block/properties assoc k list-type))))
 
              (not db-based?)
              (assoc :block/content (gp-property/insert-property repo format content :logseq.order-list-type list-type)))))