Use eraseTx() instead of erase() when deleting saved search

This commit is contained in:
Dan Stillman 2017-09-13 01:02:07 -04:00
parent c442daedce
commit 103c16a563

View file

@ -1243,7 +1243,7 @@ Zotero.CollectionTreeView.prototype.deleteSelection = Zotero.Promise.coroutine(f
}
}
else if (treeRow.isSearch()) {
yield Zotero.Searches.erase(treeRow.ref.id);
yield Zotero.Searches.eraseTx(treeRow.ref.id);
}
}
//this._treebox.endUpdateBatch();