Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964

Danielb138ff9d7fe8
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 1aeafe4e4f..e7f15b1a4e 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -3268,14 +3268,10 @@ 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.GroupItemIDs = gulu.Str.RemoveElem(groupView.GroupItemIDs, blockID)
- }
- }
}
+ regenAttrViewViewGroups(attrView, "force")
+
relatedAvIDs := av.GetSrcAvIDs(avID)
for _, relatedAvID := range relatedAvIDs {
ReloadAttrView(relatedAvID)