🎨 Shallow clone the corresponding database when the template contains database blocks https://github.com/siyuan-note/siyuan/issues/9494

This commit is contained in:
Daniel 2023-10-24 10:15:01 +08:00
parent 4796883707
commit 3bf01a7d9f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 36 additions and 10 deletions

View file

@ -1890,16 +1890,10 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool,
return ast.WalkContinue
}
var view *av.View
if "" != attrView.ViewID {
for _, v := range attrView.Views {
if v.ID == attrView.ViewID {
view = v
break
}
}
} else {
view = attrView.Views[0]
view, err := attrView.GetView()
if nil != err {
logging.LogErrorf("get attribute view [%s] failed: %s", avID, err)
return ast.WalkContinue
}
table, err := renderAttributeViewTable(attrView, view)