Skip to content

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

:bug: Fix https://github.com/siyuan-note/siyuan/issues/15183

Danielf3bcfce4e186
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 4ca04e7216..b61b6c436b 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -601,6 +601,12 @@ func GetAttributeViewFilterSort(avID, blockID string) (filters []*av.ViewFilter,
filters = view.Filters
sorts = view.Sorts
+ if 1 > len(filters) {
+ filters = []*av.ViewFilter{}
+ }
+ if 1 > len(sorts) {
+ sorts = []*av.ViewSort{}
+ }
return
}