mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: pages backlink count resets to zero
fixes https://github.com/logseq/db-test/issues/634
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user