Fix error refreshing document with item replaced by merge

This commit is contained in:
Dan Stillman 2017-01-15 16:47:01 -05:00
parent 3d83f5ff70
commit aa783878de

View file

@ -3163,7 +3163,7 @@ Zotero.Integration.URIMap.prototype.getZoteroItemForURIs = function(uris) {
'item', Zotero.Relations.replacedItemPredicate, uri
);
if (replacer.length && !replacer[0].deleted) {
zoteroItem = replacer;
zoteroItem = replacer[0];
}
if(zoteroItem) break;