Don't save collections from Scaffold

Fixes zotero/scaffold#60
This commit is contained in:
Dan Stillman 2018-08-27 17:45:42 -04:00
parent d0af622490
commit 5a008cf861

View file

@ -1698,7 +1698,9 @@ Zotero.Translate.Base.prototype = {
*/
"_checkIfDone":function() {
if(!this._savingItems && !this._savingAttachments.length && (!this._currentState || this._waitingForSave)) {
if(this.newCollections && this._itemSaver.saveCollections) {
if (this.newCollections
&& this._libraryID !== false
&& this._itemSaver.saveCollections) {
var me = this;
this._itemSaver.saveCollections(this.newCollections)
.then(function (newCollections) {