Deal with item.tags missing a sort method
This commit is contained in:
parent
ba96aff194
commit
64c8f04644
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ Zotero_TranslatorTester._sanitizeItem = function(item, forSave) {
|
|||
if("accessDate" in item) delete item.accessDate;
|
||||
|
||||
//sort tags, if they're still there
|
||||
if(item.tags) item.tags.sort();
|
||||
if(item.tags && typeof item.tags === "object" && "sort" in item.tags) item.tags.sort();
|
||||
|
||||
return item;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue