Skip to content

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

:art: Database column icon https://github.com/siyuan-note/siyuan/issues/9304

Daniel12f9042eabb2
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index cbf04b63b2..63edac6ad2 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -903,7 +903,11 @@ func addAttributeViewColumn(operation *Operation) (err error) {
keyType := av.KeyType(operation.Typ)
switch keyType {
case av.KeyTypeText, av.KeyTypeNumber, av.KeyTypeDate, av.KeyTypeSelect, av.KeyTypeMSelect, av.KeyTypeURL, av.KeyTypeEmail, av.KeyTypePhone, av.KeyTypeMAsset, av.KeyTypeTemplate:
- key := av.NewKey(operation.ID, operation.Name, operation.Data.(string), keyType)
+ var icon string
+ if nil != operation.Data {
+ icon = operation.Data.(string)
+ }
+ key := av.NewKey(operation.ID, operation.Name, icon, keyType)
attrView.KeyValues = append(attrView.KeyValues, &av.KeyValues{Key: key})
switch view.LayoutType {