Trying more

This commit is contained in:
Falkvinge
2017-03-16 10:46:40 +01:00
parent 5258988ad8
commit b8058ce90e
+3 -1
View File
@@ -85,9 +85,11 @@ function updateListBox(box, listData) {
// Step 1: Iterate through list, build id array
console.log(listData);
var idListLookup = {};
if (listData.length > 0) {
listData.forEach(function(item, index) {
Array.from(listData).forEach(function(item, index) {
idListLookup[item.id] = item;
});
}