Avoid error when dragging over header row

This commit is contained in:
Dan Stillman 2015-06-08 04:27:45 -04:00
parent 9a45fa94bd
commit 33c19715a8

View File

@ -2209,7 +2209,8 @@ Zotero.CollectionTreeRow.prototype.isShare = function()
// Special
Zotero.CollectionTreeRow.prototype.isWithinGroup = function () {
return this.ref && Zotero.Libraries.getType(this.ref.libraryID) == 'group';
return this.ref && !this.isHeader()
&& Zotero.Libraries.getType(this.ref.libraryID) == 'group';
}
Zotero.CollectionTreeRow.prototype.isWithinEditableGroup = function () {