🐛 Database attribute panel render failed https://ld246.com/article/1716701128268

This commit is contained in:
Daniel 2024-05-27 21:02:00 +08:00
parent c4cd3734b3
commit ab32cca562
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -579,6 +579,10 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
ial = GetBlockAttrsWithoutWaitWriting(block.BlockID)
}
if nil == kv.Values[0].Template {
kv.Values[0] = av.GetAttributeViewDefaultValue(kv.Values[0].ID, kv.Key.ID, blockID, kv.Key.Type)
}
var renderErr error
kv.Values[0].Template.Content, renderErr = sql.RenderTemplateCol(ial, keyValues, kv.Key.Template)
if nil != renderErr {