Skip to content

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

:art: 持久化属性视图 https://github.com/siyuan-note/siyuan/issues/2829

Liang Ding9edcf5b6ddca
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 10ddbcbbdd..542a6524e1 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -147,7 +147,7 @@ func addAttributeViewBlock(blockID, avID string, tree *parse.Tree, tx *Transacti
}
row := av.NewRow()
- row.Cells = append(row.Cells, &av.Cell{Value: blockID})
+ row.Cells = append(row.Cells, &av.Cell{ID: ast.NewNodeID(), Value: blockID})
if 1 < len(attrView.Columns) {
// 将列作为属性添加到块中