Skip to content

Commit

Permalink
fix: handle arrays of null objects
Browse files Browse the repository at this point in the history
  • Loading branch information
rhwood committed Mar 8, 2020
1 parent 4fe959b commit 2ce031c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/js/tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function displayCellValue(type, colName, value) {
ret = "";
comma = "";
value.forEach(function(item) { //return list
if (item) {
if (item.name)
ret += comma + item.name + " " + item.userName; //if named, list name and username only
else {
Expand All @@ -113,6 +114,7 @@ function displayCellValue(type, colName, value) {
});
}
comma = ", ";
}
});
return ret;
}
Expand Down

0 comments on commit 2ce031c

Please sign in to comment.