Fix classic citation dialog collection tree not working (regression b213b8f1)

Report https://forums.zotero.org/discussion/104460/zotero-6-0-24-classic-add-citation-dialog-doesnt-show-collections-content
This commit is contained in:
Adomas Venčkauskas 2023-04-19 11:25:29 +03:00
parent 83527d27fb
commit a9937740c5

View file

@ -93,12 +93,12 @@ function doUnload()
}
var onCollectionSelected = async function () {
var collectionTreeRow = collectionsView.getRow(collectionsView.selection.focused);
if (!collectionsView.selection.count) return;
// Collection not changed
if (itemsView && itemsView.collectionTreeRow && itemsView.collectionTreeRow.id == collectionTreeRow.id) {
return;
}
var collectionTreeRow = collectionsView.getRow(collectionsView.selection.focused);
collectionTreeRow.setSearch('');
Zotero.Prefs.set('lastViewedFolder', collectionTreeRow.id);