Skip to content

Commit

Permalink
Merge pull request #456 from girder/guard-against-missing
Browse files Browse the repository at this point in the history
Guard against a missing value.
  • Loading branch information
manthey authored Jun 9, 2020
2 parents ef57a5a + 1207301 commit 20a606f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ wrap(ItemListWidget, 'render', function (render) {
error: null
}).done((resp) => {
Object.entries(resp).forEach(([id, count]) => {
this.collection.get(id)._annotationCount = count;
if (this.collection.get(id)) {
this.collection.get(id)._annotationCount = count;
}
});
});
}
Expand Down

0 comments on commit 20a606f

Please sign in to comment.