Skip to content

Commit

Permalink
just apply to first found one
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Sep 30, 2019
1 parent 2789c58 commit 6fa3eac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ wrap(ItemListWidget, 'render', function (render) {
collection.fetch({
itemId: item.id
}).done(() => {
const thumbnail = $('a[g-item-cid="' + item.cid + '"] .large_image_thumbnail', parent);
const thumbnail = $('a[g-item-cid="' + item.cid + '"] .large_image_thumbnail', parent).first();

let badge = thumbnail.find('.large_image_annotation_badge');
if (badge.length === 0) {
Expand Down

0 comments on commit 6fa3eac

Please sign in to comment.