Skip to content

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

:art: Update database https://github.com/siyuan-note/siyuan/issues/10038

Danielaed2020e3f3c
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 9d486d2874..8de0e42d31 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -598,7 +598,9 @@ func renderTemplateCol(ial map[string]string, tplContent string, rowValues []*av
}
if "" == ial["updated"] {
block := getRowBlockValue(rowValues)
- ial["updated"] = time.UnixMilli(block.Block.Updated).Format("20060102150405")
+ if nil != block && nil != block.Block {
+ ial["updated"] = time.UnixMilli(block.Block.Updated).Format("20060102150405")
+ }
}
goTpl := template.New("").Delims(".action{", "}")