diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index 2cd0cde096..373fe901b8 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -3247,13 +3247,13 @@ Zotero.Sync.Server.Data = new function() { continue; } - if (unsaved.length == originalLength) { - var msg = "Incomplete collection hierarchy cannot be saved in Zotero.Sync.Server.Data._saveCollections()"; - var e = new Zotero.Error(msg, "MISSING_OBJECT"); - throw (e); - } - if (unsaved.length) { + if (unsaved.length == originalLength) { + var msg = "Incomplete collection hierarchy cannot be saved in Zotero.Sync.Server.Data._saveCollections()"; + var e = new Zotero.Error(msg, "MISSING_OBJECT"); + throw (e); + } + _saveCollections(unsaved); } }