Fix error if no colored tags (regression from b310ccb04)

This commit is contained in:
Dan Stillman 2019-09-27 13:48:28 -04:00
parent b310ccb04e
commit f827f1e049

View file

@ -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;