Skip to content

Commit

Permalink
Fix: JSON model for set type
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed May 12, 2022
1 parent a507d0f commit b179d48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/bcd/ast/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ func (set *Set) GetJSONModel(model JSONModel) {
}
arr := make([]JSONModel, len(set.Data))
for i := range set.Data {
set.Data[i].GetJSONModel(arr[i])
res := make(JSONModel)
set.Data[i].GetJSONModel(res)
arr = append(arr, res)
}
model[set.GetName()] = arr
}

0 comments on commit b179d48

Please sign in to comment.