mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 15:56:10 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
d663064b39
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