Skip to content

Commit

Permalink
Fix: latest call
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed May 11, 2021
1 parent 18e44c5 commit e3338ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/bcd/ast/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,11 @@ func (list *List) GetJSONModel(model JSONModel) {
if model == nil {
return
}
arr := make([]JSONModel, len(list.Data))
arr := make([]JSONModel, 0, len(list.Data))
for i := range list.Data {
list.Data[i].GetJSONModel(arr[i])
res := make(JSONModel)
list.Data[i].GetJSONModel(res)
arr = append(arr, res)
}
model[list.GetName()] = arr
}
Expand Down

0 comments on commit e3338ed

Please sign in to comment.