Don't try to select unselectable row on library tree row removal

(If deleting a group, don't select the header or separator before it.)
This commit is contained in:
Dan Stillman 2015-08-07 16:36:53 -04:00
parent cbf4876173
commit 5a61ac4871
3 changed files with 17 additions and 6 deletions

View file

@ -415,9 +415,7 @@ describe("Zotero.CollectionTreeView", function() {
linked = yield attachment.getLinkedItem(group.libraryID);
assert.equal(linked.id, treeRow.ref.id);
yield Zotero.DB.executeTransaction(function* () {
return group.erase();
})
return group.eraseTx();
})
it("should not copy an item or its attachment to a group twice", function* () {