From dbdddd7ff36da2da3ff03a779ef3af5f4fcc2a69 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 1 Oct 2023 17:16:08 +0800 Subject: [PATCH] :art: Add template type column to Attribute View https://github.com/siyuan-note/siyuan/issues/8766 --- kernel/model/attribute_view.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index e25cb123d..031399409 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{}