Skip to content

Commit

Permalink
Add defensive check
Browse files Browse the repository at this point in the history
  • Loading branch information
d-mo committed Apr 15, 2020
1 parent f6d1e28 commit c8ee114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mist-list",
"version": "2.1.7",
"version": "2.1.8",
"authors": [
"Dimitris Moraitis <[email protected]>",
"Christina Papakonstantinou <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion mist-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ <h2 class="dialog-title">Download list data in CSV</h2>
for (var i = 0; i < _this.selectedItems.length; i++) {
var j = this.filteredItems.findIndex(
function (item) {
return item.id === _this.selectedItems[i].id
return _this.selectedItems[i] && item.id === _this.selectedItems[i].id
}
);
if (j > -1)
Expand Down

0 comments on commit c8ee114

Please sign in to comment.