This commit is contained in:
Daniel 2025-09-07 21:05:54 +08:00
parent 6510d7dbf0
commit 93591ad44e
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -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