diff --git a/chrome/content/zotero/elements/tagsBox.js b/chrome/content/zotero/elements/tagsBox.js index 9f519530c4..1545e41404 100644 --- a/chrome/content/zotero/elements/tagsBox.js +++ b/chrome/content/zotero/elements/tagsBox.js @@ -587,7 +587,7 @@ for (let editable of tagEditables) { // Sort tags without colors below tags with colors if (!color && this._tagColors.has(editable.value) - || collation.compareString(1, tagName, editable.value) > 0) { + || editable.value && collation.compareString(1, tagName, editable.value) > 0) { continue; }