Fix error from f3b461ae1d
when no duplicate items found
This commit is contained in:
parent
041f79379c
commit
3259b63081
|
@ -56,6 +56,7 @@ Zotero.Duplicates.prototype.getSearchObject = async function () {
|
||||||
var sql = `CREATE TEMPORARY TABLE ${table} (id INTEGER PRIMARY KEY)`;
|
var sql = `CREATE TEMPORARY TABLE ${table} (id INTEGER PRIMARY KEY)`;
|
||||||
await Zotero.DB.queryAsync(sql);
|
await Zotero.DB.queryAsync(sql);
|
||||||
|
|
||||||
|
if (ids.length) {
|
||||||
Zotero.debug("Inserting rows into temp table");
|
Zotero.debug("Inserting rows into temp table");
|
||||||
sql = `INSERT INTO ${table} VALUES `;
|
sql = `INSERT INTO ${table} VALUES `;
|
||||||
await Zotero.Utilities.Internal.forEachChunkAsync(
|
await Zotero.Utilities.Internal.forEachChunkAsync(
|
||||||
|
@ -67,6 +68,10 @@ Zotero.Duplicates.prototype.getSearchObject = async function () {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
Zotero.debug("Done");
|
Zotero.debug("Done");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Zotero.debug("No duplicates found");
|
||||||
|
}
|
||||||
|
|
||||||
var s = new Zotero.Search;
|
var s = new Zotero.Search;
|
||||||
s.libraryID = this._libraryID;
|
s.libraryID = this._libraryID;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user