mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Replace Bluebird's .spread() in integration code
This commit is contained in:
parent
18ff5c30f0
commit
87971248c5
1 changed files with 2 additions and 5 deletions
|
|
@ -931,13 +931,10 @@ Zotero.Integration.Interface.prototype.setDocPrefs = async function () {
|
|||
oldData = await this._session.setDocPrefs(true);
|
||||
} else {
|
||||
// Can get fields while dialog is open
|
||||
oldData = await Promise.all([
|
||||
[, oldData] = await Promise.all([
|
||||
this._session.getFields(),
|
||||
this._session.setDocPrefs(true)
|
||||
]).spread(function (fields, setDocPrefs) {
|
||||
// Only return value from setDocPrefs
|
||||
return setDocPrefs;
|
||||
});
|
||||
]);
|
||||
}
|
||||
|
||||
// If oldData is null, then there was no document data, so we don't need to update
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue