mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
This commit is contained in:
parent
9952f76783
commit
680268054f
1 changed files with 4 additions and 0 deletions
|
|
@ -223,6 +223,10 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
|
||||||
|
|
||||||
if 0 < len(kValues.Values) {
|
if 0 < len(kValues.Values) {
|
||||||
keyValues = append(keyValues, kValues)
|
keyValues = append(keyValues, kValues)
|
||||||
|
} else {
|
||||||
|
// 如果没有值,那么就补一个默认值
|
||||||
|
kValues.Values = append(kValues.Values, treenode.GetAttributeViewDefaultValue(ast.NewNodeID(), kv.Key.ID, blockID, kv.Key.Type))
|
||||||
|
keyValues = append(keyValues, kValues)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue