Skip to content

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

:art: Database block support specified view https://github.com/siyuan-note/siyuan/issues/10443

Daniel6f7bb6bf6cdf
diff --git a/kernel/av/table.go b/kernel/av/table.go
index 15ed04f53f..6415c88b64 100644
--- a/kernel/av/table.go
+++ b/kernel/av/table.go
@@ -972,6 +972,9 @@ func (table *Table) SortRows() {
// 将包含未编辑的行放在最后
table.Rows = append(editedRows, uneditedRows...)
+ if 1 > len(table.Rows) {
+ table.Rows = []*TableRow{}
+ }
}
func (table *Table) FilterRows(attrView *AttributeView) {