From 1503363a7cdc41d7464b4658f49e51237bf67858 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 23 Aug 2025 21:49:57 +0800 Subject: [PATCH] :art: Improve av https://github.com/siyuan-note/siyuan/issues/15661 --- kernel/av/value.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/av/value.go b/kernel/av/value.go index 6ea5d3f99..2be6b01f1 100644 --- a/kernel/av/value.go +++ b/kernel/av/value.go @@ -19,6 +19,7 @@ package av import ( "fmt" "math" + "reflect" "sort" "strconv" "strings" @@ -808,7 +809,7 @@ func (r *ValueRollup) BuildContents(keyValues []*KeyValues, destKey *Key, relati continue } - if val := destVal.GetValByType(destKey.Type); nil == val { + if val := destVal.GetValByType(destKey.Type); nil == val || reflect.ValueOf(val).IsNil() { // 目标字段因为修改类型导致空值 continue }