mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-25 19:08:49 +01:00
🎨 Update db table view
This commit is contained in:
parent
b258c134e5
commit
91e6cd4466
1 changed files with 7 additions and 2 deletions
|
|
@ -167,8 +167,13 @@ func RenderAttributeView(avID string) (viewable av.Viewable, attrView *av.Attrib
|
|||
}
|
||||
|
||||
if 1 > len(attrView.Views) {
|
||||
err = av.ErrViewNotFound
|
||||
return
|
||||
view := av.NewView()
|
||||
attrView.Views = append(attrView.Views, view)
|
||||
attrView.ViewID = view.ID
|
||||
if err = av.SaveAttributeView(attrView); nil != err {
|
||||
logging.LogErrorf("save attribute view [%s] failed: %s", avID, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var view *av.View
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue