Fix selectItem() on first items row (regression from d5334dc483)

This commit is contained in:
Dan Stillman 2021-03-17 00:31:21 -04:00
parent c04f5c28a2
commit ae98488d2b

View file

@ -1892,7 +1892,7 @@ Zotero.ItemTreeView.prototype.selectItems = async function (ids, noRecurse) {
var rowsToSelect = [];
for (let id of idsToSelect) {
let row = this._rowMap[id];
if (!row) {
if (row === undefined) {
Zotero.debug(`Item ${id} not in row map -- skipping`);
continue;
}