Make non-integer id passed to getAsync() non-fatal for now
Follow-up to 4e1937680f
This commit is contained in:
parent
653f041140
commit
71d636e8fb
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue