From 2645f0de12578cfcf35f039ee34c78f428afb21e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 3 Mar 2020 00:23:32 -0500 Subject: [PATCH] Fix "extra is null" error (also fixed via API) --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 9d608d8c7c..b303a2507c 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -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