mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Update text
This commit is contained in:
@@ -103,6 +103,14 @@ func RenderAttributeView(avID, nodeID string) (viewable av.Viewable, attrView *a
|
||||
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) {
|
||||
err = av.ErrViewNotFound
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user