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 d08acfc3ba
This commit is contained in:
Gabriel Horner
2025-05-26 15:24:16 -04:00
parent 973ec2b240
commit b451cf1508

View File

@@ -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)