diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 4b0d4e5c8..acf7609c2 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -496,7 +496,7 @@ Zotero.Item.prototype.setType = function(itemTypeID, loadIn) { if (oldItemTypeID) { // Reset custom creator types to the default let creators = this.getCreators(); - if (creators) { + if (creators.length) { let removeAll = !Zotero.CreatorTypes.itemTypeHasCreators(itemTypeID); for (let i=0; i