Skip to content

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

:art: Improve adding rows of the filtered database table view https://github.com/siyuan-note/siyuan/issues/10025

Danieldba46ead4ae3
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 0f907a5662..c9ca55fb2c 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -901,7 +901,7 @@ func updateAttributeViewColRollup(operation *Operation) (err error) {
KeyID: operation.KeyID,
}
- if nil != operation.Data {
+ if nil != operation.Data && "" != operation.Data.(string) {
data := operation.Data.(map[string]interface{})
if nil != data["calc"] {
calcData, jsonErr := gulu.JSON.MarshalJSON(data["calc"])