Skip to content

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

:art: Improve av https://github.com/siyuan-note/siyuan/issues/15661

Daniel1503363a7cdc
diff --git a/kernel/av/value.go b/kernel/av/value.go
index 6ea5d3f998..2be6b01f10 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
}