mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-15 15:28:37 +08:00
This commit is contained in:
parent
6510d7dbf0
commit
93591ad44e
@ -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…
Reference in New Issue
Block a user