Fix error generate sample type/field data for tests
This commit is contained in:
parent
a1305712f3
commit
96347d4333
1 changed files with 1 additions and 1 deletions
|
@ -771,7 +771,7 @@ var generateItemJSONData = Zotero.Promise.coroutine(function* generateItemJSONDa
|
|||
|
||||
for (let itemName in items) {
|
||||
let zItem = yield Zotero.Items.getAsync(items[itemName].id);
|
||||
jsonData[itemName] = zItem.toJSON(options);
|
||||
jsonData[itemName] = zItem.toJSON(options || {});
|
||||
|
||||
// Don't replace some fields that _always_ change (e.g. item keys)
|
||||
// as long as it follows expected format
|
||||
|
|
Loading…
Reference in a new issue