Remove unnecessary code in getFileBaseNameFromItem

This commit is contained in:
Tom Najdek 2023-08-07 17:03:27 +02:00
parent 88d39ec04a
commit 19382a061f
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77

View file

@ -2256,16 +2256,13 @@ Zotero.Attachments = new function () {
const getSlicedCreatorsOfType = (creatorType, slice) => {
let creatorTypeIDs;
switch (creatorType) {
case 'author':
case 'authors':
creatorTypeIDs = [Zotero.CreatorTypes.getPrimaryIDForType(item.itemTypeID)];
break;
case 'editor':
case 'editors':
creatorTypeIDs = [Zotero.CreatorTypes.getID('editor'), Zotero.CreatorTypes.getID('seriesEditor')];
break;
default:
case 'creator':
case 'creators':
creatorTypeIDs = null;
break;