From 120730181697d075ac029133fb97bbcdb21401e2 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Tue, 9 Jun 2020 09:26:47 -0400 Subject: [PATCH] Guard against a missing value. --- .../web_client/views/itemList.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/girder_annotation/girder_large_image_annotation/web_client/views/itemList.js b/girder_annotation/girder_large_image_annotation/web_client/views/itemList.js index 7bb1c1b2d..b63e9637b 100644 --- a/girder_annotation/girder_large_image_annotation/web_client/views/itemList.js +++ b/girder_annotation/girder_large_image_annotation/web_client/views/itemList.js @@ -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; + } }); }); }