Fix colored tags in group libraries
Pressing the number keys was pulling in colored tags from "My Library".
This commit is contained in:
parent
afd14ae4b9
commit
571dfc551c
|
@ -189,7 +189,7 @@ Zotero.ItemTreeView.prototype._setTreeGenerator = function(treebox)
|
|||
|
||||
Q.fcall(function () {
|
||||
if (coloredTagsRE.test(key)) {
|
||||
let libraryID = self._itemGroup.libraryID;
|
||||
let libraryID = self._itemGroup.ref.libraryID;
|
||||
libraryID = libraryID ? parseInt(libraryID) : 0;
|
||||
let position = parseInt(key) - 1;
|
||||
return Zotero.Tags.getColorByPosition(libraryID, position)
|
||||
|
|
Loading…
Reference in New Issue
Block a user