Fix merge interface doubling rows in master selector

Master choices would occasionally be doubled in the listbox. Clearing
the innerHTML instead of using removeItemAt() fixes the issue.
This commit is contained in:
Abe Jellinek 2022-03-28 13:24:59 -07:00
parent 83702678e6
commit a9d7a08a05

View file

@ -89,10 +89,7 @@ var Zotero_Duplicates_Pane = new function () {
if (alternatives) {
// Populate menulist with Date Added values from all items
var dateList = document.getElementById('zotero-duplicates-merge-original-date');
while (dateList.itemCount) {
dateList.removeItemAt(0);
}
dateList.innerHTML = '';
var numRows = 0;
for (let item of items) {