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

eraseTx() isn't actually valid in this context.

This reverts commit 103c16a563.
This commit is contained in:
Dan Stillman 2017-09-19 23:47:03 -04:00
parent 8efbfb7c74
commit a858368642

View file

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