From 2b49e94a617e31a5f3c98884f1da552d7aa073f0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 7 Jun 2018 17:18:28 -0400 Subject: [PATCH] Fix sync breakage from 78e87a351 --- chrome/content/zotero/xpcom/data/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js index 8d263aae3f..cf988a5120 100644 --- a/chrome/content/zotero/xpcom/data/collection.js +++ b/chrome/content/zotero/xpcom/data/collection.js @@ -698,7 +698,7 @@ Zotero.Collection.prototype.fromJSON = function (json) { this.name = json.name; this.parentKey = json.parentCollection ? json.parentCollection : false; - this.setRelations(json.relations); + this.setRelations(json.relations || {}); }