mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 03:48:48 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15567
This commit is contained in:
parent
91207ba529
commit
30b5473c76
1 changed files with 4 additions and 1 deletions
|
|
@ -242,6 +242,9 @@ func RenderTemplateField(ial map[string]string, keyValues []*av.KeyValues, tplCo
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ret = buf.String()
|
ret = buf.String()
|
||||||
|
if ret == "<no value>" {
|
||||||
|
ret = ""
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -506,7 +509,7 @@ func fillAttributeViewAutoGeneratedValues(attrView *av.AttributeView, collection
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func fillAttributeViewTemplateValues(attrView *av.AttributeView, collection av.Collection, ials map[string]map[string]string, items map[string][]*av.KeyValues) (err error) {
|
func fillAttributeViewTemplateValues(attrView *av.AttributeView, collection av.Collection, ials map[string]map[string]string, items map[string][]*av.KeyValues, renderedTemplateKeyCollections map[string]av.Collection) (err error) {
|
||||||
existTemplateField := false
|
existTemplateField := false
|
||||||
for _, kVals := range attrView.KeyValues {
|
for _, kVals := range attrView.KeyValues {
|
||||||
if av.KeyTypeTemplate == kVals.Key.Type {
|
if av.KeyTypeTemplate == kVals.Key.Type {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue