From d2b36c42188db6619b80e2bc2140ba3d0cf498e3 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 12 May 2021 03:09:22 -0400 Subject: [PATCH] Deduplicate libraryIDs passed to setSyncTimeout() for an auto-sync --- chrome/content/zotero/xpcom/sync/syncEventListeners.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/sync/syncEventListeners.js b/chrome/content/zotero/xpcom/sync/syncEventListeners.js index 694b95f70c..3d4f2a803f 100644 --- a/chrome/content/zotero/xpcom/sync/syncEventListeners.js +++ b/chrome/content/zotero/xpcom/sync/syncEventListeners.js @@ -208,7 +208,7 @@ Zotero.Sync.EventListeners.AutoSyncListener = { autoSyncDelay || this._editTimeout, false, { - libraries: libraries.map(library => library.libraryID), + libraries: [...new Set(libraries.map(library => library.libraryID))], fileLibraries: [...fileLibraries], fullTextLibraries: [...fullTextLibraries] }