Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Add template type column to Attribute View https://github.com/siyuan-note/siyuan/issues/8766

Danieldbdddd7ff36d
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index e25cb123db..0313994099 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -237,7 +237,8 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
goTpl := template.New("").Delims(".action{", "}")
tpl, tplErr := goTpl.Funcs(funcMap).Parse(tableCell.Value.Template.Content)
if nil != tplErr {
- logging.LogWarnf("parse template [%s] failed: %s", tableCell.Value.Template.Content, err)
+ logging.LogWarnf("parse template [%s] failed: %s", tableCell.Value.Template.Content, tplErr)
+ return ""
}
buf := &bytes.Buffer{}