Fix "extra is null" error (also fixed via API)

This commit is contained in:
Dan Stillman 2020-03-03 00:23:32 -05:00
parent da5e8c549e
commit 2645f0de12

View file

@ -4209,7 +4209,7 @@ Zotero.Item.prototype.fromJSON = function (json, options = {}) {
var isValidForType = {};
var setFields = new Set();
var { fields: extraFields, creators: extraCreators, extra } = Zotero.Utilities.Internal.extractExtraFields(
json.extra !== undefined ? json.extra : '',
json.extra || '',
this,
Object.keys(json)
// TEMP until we move creator lines to real creators