🐛 Database attribute panel render failed https://ld246.com/article/1716701128268
This commit is contained in:
parent
c4cd3734b3
commit
ab32cca562
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue