mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 02:10:15 +01:00
🎨 Shallow clone the corresponding database when the template contains database blocks https://github.com/siyuan-note/siyuan/issues/9494
This commit is contained in:
parent
4796883707
commit
3bf01a7d9f
2 changed files with 36 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue