فهرست منبع

fix: numbered list not created in a child block

A new block in this repro consistently returns :block/properties '()
which results in the bug. Fixes
https://test.logseq.com/#/page/68307c18-f9fb-4049-9efb-944cdff4226d.
This is similar to d08acfc3badc37a56f3340698657d504acdc0f80
Gabriel Horner 5 ماه پیش
والد
کامیت
b451cf1508
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      src/main/frontend/handler/file_based/property.cljs

+ 3 - 2
src/main/frontend/handler/file_based/property.cljs

@@ -34,9 +34,10 @@
           (when-let [block (db/entity [:block/uuid block-id])]
             (let [format (get block :block/format :markdown)
                   content (:block/title block)
-                  properties (:block/properties block)
+                  ;; FIXME: Remove not-empty if :block/properties stops returning '()
+                  properties* (not-empty (:block/properties block))
                   properties-text-values (:block/properties-text-values block)
-                  properties (-> (merge properties new-properties)
+                  properties (-> (merge properties* new-properties)
                                  common-util/remove-nils-non-nested)
                   properties-text-values (-> (merge properties-text-values new-properties)
                                              common-util/remove-nils-non-nested)