mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
Restore Zotero.Promise.method() on ItemGetter#setAll()
Required for noWait translation
This commit is contained in:
parent
d797c7a4d8
commit
4c51883b97
1 changed files with 2 additions and 2 deletions
|
|
@ -1111,7 +1111,7 @@ Zotero.Translate.ItemGetter.prototype = {
|
|||
* NOTE: This function should use the Zotero.Promise.method wrapper which adds a
|
||||
* isResolved property to the returned promise for noWait translation.
|
||||
*/
|
||||
setAll: async function (libraryID, getChildCollections) {
|
||||
setAll: Zotero.Promise.method(async function (libraryID, getChildCollections) {
|
||||
this._itemsLeft = (await Zotero.Items.getAll(libraryID, true))
|
||||
.filter((item) => {
|
||||
// Don't export annotations
|
||||
|
|
@ -1128,7 +1128,7 @@ Zotero.Translate.ItemGetter.prototype = {
|
|||
|
||||
this._itemsLeft.sort((a, b) => a.id - b.id);
|
||||
this.numItems = this._itemsLeft.length;
|
||||
},
|
||||
}),
|
||||
|
||||
exportFiles: function (dir, extension, { includeAnnotations }) {
|
||||
// generate directory
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue