From dba46ead4ae388a97657a70de1ef85e14c778ead Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 30 Dec 2023 17:39:00 +0800 Subject: [PATCH] :art: Improve adding rows of the filtered database table view https://github.com/siyuan-note/siyuan/issues/10025 --- kernel/model/attribute_view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 0f907a566..c9ca55fb2 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"])