Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-17 09:51:12 +08:00
parent a62593b2f4
commit 07259718a8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -808,6 +808,11 @@ func (r *ValueRollup) BuildContents(keyValues []*KeyValues, destKey *Key, relati
}
if nil == destVal {
if KeyTypeCheckbox == destKey.Type {
// 没有编辑过复选框的时候没有值,没有值等同于未选中,所以这里补一个未选中的值 https://github.com/siyuan-note/siyuan/issues/15858
defaultVal := GetAttributeViewDefaultValue(ast.NewNodeID(), destKey.ID, blockID, destKey.Type, false)
r.Contents = append(r.Contents, defaultVal)
}
continue
}