Skip to content

Commit

Permalink
fix(ui): column render error for irregular items such as collections
Browse files Browse the repository at this point in the history
  • Loading branch information
wohenbushuang committed Nov 11, 2024
1 parent bfbab06 commit 5250a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class UIFactory {
dataKey: field,
label: getString("column-zotpp-tags"),//"ZotPP tags",
dataProvider: (item: Zotero.Item, dataKey: string) => {
if (item.isNote() || item.isAttachment() || (item.isAnnotation != null ? item.isAnnotation() : null)) {
if (!item.isRegularItem()) {
return "";
}
if (TagFactory.zotPPTagsMapping === undefined) {
Expand Down

0 comments on commit 5250a4a

Please sign in to comment.