Fix item PDF not opening on double click in tree

This commit is contained in:
Adomas Venčkauskas 2021-04-14 14:43:23 +03:00 committed by Dan Stillman
parent 9c7f28b126
commit 7265393be9

View file

@ -1010,7 +1010,7 @@ var ItemTree = class ItemTree extends LibraryTree {
handleActivate = (event, indices) => {
// Ignore double-clicks in duplicates view on everything except attachments
let items = indices.map(index => this.getRow(index).ref);
if (event.button == 0 && this.collectionTreeRow.isDuplicates) {
if (event.button == 0 && this.collectionTreeRow.isDuplicates()) {
if (items.length != 1 || !items[0].isAttachment()) {
return false;
}