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

Danielf1feaf603e80
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 6a21be2087..e695db6fe9 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -1638,8 +1638,12 @@ func renderAttributeView(attrView *av.AttributeView, blockID, viewID, query stri
if nil != groupPaging {
if paging := groupPaging[groupView.ID]; nil != paging {
pagingMap := paging.(map[string]interface{})
- groupPage = int(pagingMap["page"].(float64))
- groupPageSize = int(pagingMap["pageSize"].(float64))
+ if nil != pagingMap["page"] {
+ groupPage = int(pagingMap["page"].(float64))
+ }
+ if nil != pagingMap["pageSize"] {
+ groupPageSize = int(pagingMap["pageSize"].(float64))
+ }
}
}