mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 03:40:04 -06:00
🎨 Improve rollup checkbox https://github.com/siyuan-note/siyuan/issues/15858
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user