Skip to content

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

:art: Rows non-bound in the database support `Add to Database` https://github.com/siyuan-note/siyuan/issues/11093

Daniel8eaf0ea411c9
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index f9adb800f3..2c3902cc2e 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -2198,7 +2198,10 @@ func AddAttributeViewBlock(tx *Transaction, srcs []map[string]interface{}, avID,
}
}
- srcContent := src["content"].(string)
+ var srcContent string
+ if nil != src["content"] {
+ srcContent = src["content"].(string)
+ }
if avErr := addAttributeViewBlock(avID, blockID, previousBlockID, srcID, srcContent, isDetached, ignoreFillFilter, tree, tx); nil != avErr {
return avErr
}