Deduplicate libraryIDs passed to setSyncTimeout() for an auto-sync

This commit is contained in:
Dan Stillman 2021-05-12 03:09:22 -04:00
parent 5eb6935842
commit d2b36c4218

View file

@ -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]
}