diff --git a/chrome/content/zotero/xpcom/data/tags.js b/chrome/content/zotero/xpcom/data/tags.js index 59b6a5e580..36a90bf1bd 100644 --- a/chrome/content/zotero/xpcom/data/tags.js +++ b/chrome/content/zotero/xpcom/data/tags.js @@ -591,6 +591,8 @@ Zotero.Tags = new function() { } var tagColors = Zotero.SyncedSettings.get(libraryID, 'tagColors') || []; + // Normalize tags from DB, which might not have been normalized properly previously + tagColors.forEach(x => x.name = x.name.normalize()); _libraryColors[libraryID] = tagColors; _libraryColorsByName[libraryID] = new Map; @@ -619,7 +621,7 @@ Zotero.Tags = new function() { this.getColors(libraryID); var tagColors = _libraryColors[libraryID]; - name = name.trim(); + name = name.trim().normalize(); // Unset if (!color) {