Skip to content

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

:art: Update av https://ld246.com/article/1703831044435

Daniel2db7c5167db4
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 2e850be816..2690642861 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -742,6 +742,10 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeCreated}
case av.KeyTypeUpdated: // 填充更新时间列值,后面再渲染
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeUpdated}
+ case av.KeyTypeRelation: // 清空关联列值,后面再渲染 https://ld246.com/article/1703831044435
+ if nil != tableCell.Value && nil != tableCell.Value.Relation {
+ tableCell.Value.Relation.Contents = nil
+ }
}
treenode.FillAttributeViewTableCellNilValue(tableCell, rowID, col.ID)
diff --git a/kernel/treenode/node.go b/kernel/treenode/node.go
index de03ce8627..cd9640336e 100644
--- a/kernel/treenode/node.go
+++ b/kernel/treenode/node.go
@@ -698,6 +698,10 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeCreated}
case av.KeyTypeUpdated: // 填充更新时间列值,后面再渲染
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeUpdated}
+ case av.KeyTypeRelation: // 清空关联列值,后面再渲染 https://ld246.com/article/1703831044435
+ if nil != tableCell.Value && nil != tableCell.Value.Relation {
+ tableCell.Value.Relation.Contents = nil
+ }
}
FillAttributeViewTableCellNilValue(tableCell, rowID, col.ID)