fix: pages backlink count resets to zero

fixes https://github.com/logseq/db-test/issues/634
This commit is contained in:
Tienson Qin
2025-12-16 21:08:38 +08:00
parent ef8f5caa27
commit 6020df8806

View File

@@ -990,13 +990,15 @@
(rum/defc table-row < rum/reactive db-mixins/query
[table row props option]
(let [block (db/sub-block (:db/id row))
row' (some->
(if (:block.temp/load-status block) block row)
(update :block/tags (fn [tags]
(keep (fn [tag]
(when-let [id (:db/id tag)]
(db/entity id)))
tags))))]
block' (if (= :full (:block.temp/load-status block)) block row)
row' (when block'
(-> block'
(update :block/tags (fn [tags]
(keep (fn [tag]
(when-let [id (:db/id tag)]
(db/entity id)))
tags)))
(assoc :block.temp/refs-count (:block.temp/refs-count row))))]
(table-row-inner table row' props option)))
(rum/defc search