CrossBreezeNL/crossmodel

Attributes is not an array

ozcanxbreeze opened this issue · 1 comments

The model server sends an object to the form-client. Is has the following data structure:

{
$type: "Entity",
name: "Klant1",
description: "yyweyeytest",
attributes: {
"0": {
$type: "Attribute",
name: "test1",
value: "test2",
},
"1": {
$type: "Attribute",
name: "test2",
value: "test1233",
},
"2": {
$type: "Attribute",
name: "test3",
value: "test",
},
"3": {
$type: "Attribute",
name: "test4",
value: "test1",
},
"4": {
$type: "Attribute",
name: "test5",
value: "test12124124124",
},
},
}

the attributes are not in an array. instead of simply mapping the values, we have to write a for loop.

Solved this in pull request 22