mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
9e819955ef
commit
fd89e77f37
1 changed files with 6 additions and 0 deletions
|
@ -3161,6 +3161,12 @@ func removeAttributeViewBlock(srcIDs []string, avID string, tx *Transaction) (er
|
|||
for _, blockID := range srcIDs {
|
||||
view.ItemIDs = gulu.Str.RemoveElem(view.ItemIDs, blockID)
|
||||
}
|
||||
|
||||
for _, groupView := range view.Groups {
|
||||
for _, blockID := range srcIDs {
|
||||
groupView.ItemIDs = gulu.Str.RemoveElem(groupView.ItemIDs, blockID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
relatedAvIDs := av.GetSrcAvIDs(avID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue