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:
parent
cbf4876173
commit
5a61ac4871
3 changed files with 17 additions and 6 deletions
|
@ -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* () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue