Fix error dragging items if tag selector was closed at startup

This commit is contained in:
Dan Stillman 2019-03-26 19:34:29 -04:00
parent 71f9420cff
commit 197397ff7a

View file

@ -1845,7 +1845,8 @@ Zotero.ItemTreeView.prototype.selectItems = async function (ids, noRecurse) {
// Clear the quick search and tag selection and try again (once)
if (!noRecurse && this.window.ZoteroPane) {
let cleared1 = await this.window.ZoteroPane.clearQuicksearch();
let cleared2 = this.window.ZoteroPane.tagSelector.clearTagSelection();
let cleared2 = this.window.ZoteroPane.tagSelector
&& this.window.ZoteroPane.tagSelector.clearTagSelection();
if (cleared1 || cleared2) {
return this.selectItems(ids, true);
}