Make non-integer id passed to getAsync() non-fatal for now
Follow-up to 4e1937680f
This commit is contained in:
parent
653f041140
commit
71d636e8fb
|
@ -174,7 +174,10 @@ Zotero.DataObjects.prototype.getAsync = Zotero.Promise.coroutine(function* (ids,
|
||||||
let id = ids[i];
|
let id = ids[i];
|
||||||
|
|
||||||
if (!Number.isInteger(id)) {
|
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
|
// Check if already loaded
|
||||||
|
|
Loading…
Reference in New Issue
Block a user