From f827f1e0495bf6870f72a80d741e63d54e4d25c2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 27 Sep 2019 13:48:28 -0400 Subject: [PATCH] Fix error if no colored tags (regression from b310ccb04) --- chrome/content/zotero/xpcom/data/tags.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/tags.js b/chrome/content/zotero/xpcom/data/tags.js index 2f20955afd..cc77e8e5a9 100644 --- a/chrome/content/zotero/xpcom/data/tags.js +++ b/chrome/content/zotero/xpcom/data/tags.js @@ -580,6 +580,9 @@ Zotero.Tags = new function() { } var tagColors = Zotero.SyncedSettings.get(libraryID, 'tagColors'); + if (!tagColors) { + tagColors = []; + } _libraryColors[libraryID] = tagColors; _libraryColorsByName[libraryID] = new Map;