Make non-integer id passed to getAsync() non-fatal for now

Follow-up to 4e1937680f
This commit is contained in:
Dan Stillman 2017-06-04 21:35:54 -04:00
parent 653f041140
commit 71d636e8fb

View file

@ -174,7 +174,10 @@ Zotero.DataObjects.prototype.getAsync = Zotero.Promise.coroutine(function* (ids,
let id = ids[i];
if (!Number.isInteger(id)) {
throw new Error(`Invalid ${this._ZDO_object} ID '${id}' (${typeof id})`);
// TEMP
Zotero.logError(`${this._ZDO_object} ID '${id}' is not an integer (${typeof id})`);
id = parseInt(id);
//throw new Error(`${this._ZDO_object} ID '${id}' is not an integer (${typeof id})`);
}
// Check if already loaded