mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
attrView = &av.AttributeView{}
|
attrView = &av.AttributeView{RenderedViewables: map[string]av.Viewable{}}
|
||||||
if err = gulu.JSON.UnmarshalJSON(data, attrView); err != nil {
|
if err = gulu.JSON.UnmarshalJSON(data, attrView); err != nil {
|
||||||
logging.LogErrorf("unmarshal attribute view [%s] failed: %s", avID, err)
|
logging.LogErrorf("unmarshal attribute view [%s] failed: %s", avID, err)
|
||||||
return
|
return
|
||||||
|
|
@ -518,7 +518,7 @@ func RenderHistoryAttributeView(avID, created string) (viewable av.Viewable, att
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
attrView = &av.AttributeView{}
|
attrView = &av.AttributeView{RenderedViewables: map[string]av.Viewable{}}
|
||||||
if err = gulu.JSON.UnmarshalJSON(data, attrView); err != nil {
|
if err = gulu.JSON.UnmarshalJSON(data, attrView); err != nil {
|
||||||
logging.LogErrorf("unmarshal attribute view [%s] failed: %s", avID, err)
|
logging.LogErrorf("unmarshal attribute view [%s] failed: %s", avID, err)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue