Always return from numDistinctFileAttachmentsForLabel() once we're >1

This commit is contained in:
Dan Stillman 2024-05-16 01:41:55 -04:00
parent 834ee0ff6c
commit 5be5ca9416

View file

@ -1873,12 +1873,14 @@ Zotero.Items = function() {
if (item.key == foundKey) {
continue;
}
// More than 1 attachment found
return MAX_ITEMS;
}
foundKey = item.key;
num++;
}
if (num >= MAX_ITEMS) {
break;
}
}
return num;
};