From 30b5473c7600afcc30c0a7b4365033b36bad1299 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 14 Aug 2025 10:02:33 +0800 Subject: [PATCH] :art: Improve av https://github.com/siyuan-note/siyuan/issues/15567 --- kernel/sql/av.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/sql/av.go b/kernel/sql/av.go index 398d38c02..7fc8d54bc 100644 --- a/kernel/sql/av.go +++ b/kernel/sql/av.go @@ -242,6 +242,9 @@ func RenderTemplateField(ial map[string]string, keyValues []*av.KeyValues, tplCo return } ret = buf.String() + if ret == "" { + ret = "" + } 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 for _, kVals := range attrView.KeyValues { if av.KeyTypeTemplate == kVals.Key.Type {