mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Improve rollup checkbox https://github.com/siyuan-note/siyuan/issues/15858
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
a62593b2f4
commit
07259718a8
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue