Fix error if no colored tags (regression from b310ccb04
)
This commit is contained in:
parent
b310ccb04e
commit
f827f1e049
1 changed files with 3 additions and 0 deletions
|
@ -580,6 +580,9 @@ Zotero.Tags = new function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var tagColors = Zotero.SyncedSettings.get(libraryID, 'tagColors');
|
var tagColors = Zotero.SyncedSettings.get(libraryID, 'tagColors');
|
||||||
|
if (!tagColors) {
|
||||||
|
tagColors = [];
|
||||||
|
}
|
||||||
_libraryColors[libraryID] = tagColors;
|
_libraryColors[libraryID] = tagColors;
|
||||||
_libraryColorsByName[libraryID] = new Map;
|
_libraryColorsByName[libraryID] = new Map;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue