Compare commits

..

No commits in common. "main" and "V1.0.7" have entirely different histories.
main ... V1.0.7

2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ function onLoad() {
for (const lib of Zotero.Libraries.getAll()) {
needFetchItems = needFetchItems.concat(
(await Zotero.Items.getAll(lib.id)).filter((item: Zotero.Item) => {
return item.isRegularItem();
return item.isRegularItem() && !item.isCollection();
}),
);
}

View File

@ -13,7 +13,7 @@ export class TLDRFetcher {
constructor(item: Zotero.Item) {
this.zoteroItem = item;
if (item.isRegularItem()) {
if (item.isRegularItem() && !item.isCollection()) {
this.title = item.getField("title") as string;
this.abstract = item.getField("abstractNote") as string;
}