From 87971248c5aa69689b0e4eb5d5393d973776f46e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 30 Jul 2025 11:29:54 -0400 Subject: [PATCH] Replace Bluebird's .spread() in integration code --- chrome/content/zotero/xpcom/integration.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 7b6aad2ce5..1c65b00b57 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -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