mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
🎨 Update text
This commit is contained in:
parent
4478829b33
commit
310a583f68
1 changed files with 8 additions and 0 deletions
|
|
@ -103,6 +103,14 @@ func RenderAttributeView(avID, nodeID string) (viewable av.Viewable, attrView *a
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if "" == attrView.NodeID {
|
||||||
|
attrView.NodeID = nodeID
|
||||||
|
if err = av.SaveAttributeView(attrView); nil != err {
|
||||||
|
logging.LogErrorf("save attribute view [%s] failed: %s", avID, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if 1 > len(attrView.Views) {
|
if 1 > len(attrView.Views) {
|
||||||
err = av.ErrViewNotFound
|
err = av.ErrViewNotFound
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue