🎨 Select field is added by default when creating a database https://github.com/siyuan-note/siyuan/issues/10720

This commit is contained in:
Daniel 2024-03-24 21:26:01 +08:00
parent f0fd8f9b90
commit db3df51680
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 17 additions and 9 deletions

View file

@ -596,7 +596,7 @@ func RenderAttributeView(avID, viewID, query string, page, pageSize int) (viewab
func renderAttributeView(attrView *av.AttributeView, viewID, query string, page, pageSize int) (viewable av.Viewable, err error) {
if 1 > len(attrView.Views) {
view, _ := av.NewTableViewWithBlockKey(ast.NewNodeID())
view, _, _ := av.NewTableViewWithBlockKey(ast.NewNodeID())
attrView.Views = append(attrView.Views, view)
attrView.ViewID = view.ID
if err = av.SaveAttributeView(attrView); nil != err {