mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve def block ref count https://github.com/siyuan-note/siyuan/issues/13879
This commit is contained in:
parent
aa43b29a4f
commit
db86447f00
1 changed files with 1 additions and 2 deletions
|
|
@ -154,9 +154,8 @@ func refreshRefCount(rootID, blockID string) {
|
|||
isDoc := bt.ID == bt.RootID
|
||||
var rootRefIDs []string
|
||||
var refCount, rootRefCount int
|
||||
var refIDs []string
|
||||
refIDs := sql.QueryRefIDsByDefID(bt.ID, isDoc)
|
||||
if isDoc {
|
||||
refIDs = sql.QueryRefIDsByDefID(bt.ID, isDoc)
|
||||
rootRefIDs = refIDs
|
||||
} else {
|
||||
rootRefIDs = sql.QueryRefIDsByDefID(bt.RootID, true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue