Fix crashing for some actions in duplicate items
Necessary after more strict error handling in c4411e1ad3
This commit is contained in:
parent
8f116f60c4
commit
7fc188b172
|
@ -1429,8 +1429,7 @@ var ZoteroPane = new function()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Single item selected
|
// Single item selected
|
||||||
if (this.itemsView.selection.count == 1 && this.itemsView.selection.currentIndex != -1)
|
if (selectedItems.length == 1) {
|
||||||
{
|
|
||||||
var item = selectedItems[0];
|
var item = selectedItems[0];
|
||||||
|
|
||||||
if (item.isNote()) {
|
if (item.isNote()) {
|
||||||
|
@ -1520,7 +1519,7 @@ var ZoteroPane = new function()
|
||||||
ZoteroItemPane.setToggleReadLabel();
|
ZoteroItemPane.setToggleReadLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
var count = this.itemsView.selection.count;
|
let count = selectedItems.length;
|
||||||
|
|
||||||
// Display duplicates merge interface in item pane
|
// Display duplicates merge interface in item pane
|
||||||
if (collectionTreeRow.isDuplicates()) {
|
if (collectionTreeRow.isDuplicates()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user