mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
6510d7dbf0
commit
93591ad44e
1 changed files with 2 additions and 2 deletions
|
|
@ -475,7 +475,7 @@ func RenderRepoSnapshotAttributeView(indexID, avID string) (viewable av.Viewable
|
|||
return
|
||||
}
|
||||
|
||||
attrView = &av.AttributeView{}
|
||||
attrView = &av.AttributeView{RenderedViewables: map[string]av.Viewable{}}
|
||||
if err = gulu.JSON.UnmarshalJSON(data, attrView); err != nil {
|
||||
logging.LogErrorf("unmarshal attribute view [%s] failed: %s", avID, err)
|
||||
return
|
||||
|
|
@ -518,7 +518,7 @@ func RenderHistoryAttributeView(avID, created string) (viewable av.Viewable, att
|
|||
return
|
||||
}
|
||||
|
||||
attrView = &av.AttributeView{}
|
||||
attrView = &av.AttributeView{RenderedViewables: map[string]av.Viewable{}}
|
||||
if err = gulu.JSON.UnmarshalJSON(data, attrView); err != nil {
|
||||
logging.LogErrorf("unmarshal attribute view [%s] failed: %s", avID, err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue