diff --git a/chrome/content/zotero/xpcom/data/tags.js b/chrome/content/zotero/xpcom/data/tags.js index cc77e8e5a9..e95b7b6042 100644 --- a/chrome/content/zotero/xpcom/data/tags.js +++ b/chrome/content/zotero/xpcom/data/tags.js @@ -579,10 +579,7 @@ Zotero.Tags = new function() { return _libraryColorsByName[libraryID]; } - var tagColors = Zotero.SyncedSettings.get(libraryID, 'tagColors'); - if (!tagColors) { - tagColors = []; - } + var tagColors = Zotero.SyncedSettings.get(libraryID, 'tagColors') || []; _libraryColors[libraryID] = tagColors; _libraryColorsByName[libraryID] = new Map;