mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15661
This commit is contained in:
parent
17924377ec
commit
1503363a7c
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue