浏览代码

fix: numbered list in db graphs

Gabriel Horner 1 年之前
父节点
当前提交
514b5b5d56
共有 1 个文件被更改,包括 4 次插入4 次删除
  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)))))