Fix log spam when library hasn't been synced (#2409)
This happens a lot during tests - library.lastSync is null, so showAutoSyncReminder() throws. It doesn't fail tests but it does spam the log.
This commit is contained in:
parent
80bb40b153
commit
6b6c27029b
1 changed files with 1 additions and 1 deletions
|
@ -2362,7 +2362,7 @@ var ZoteroPane = new function()
|
|||
|| Zotero.Prefs.get('sync.autoSync')
|
||||
|| Zotero.Libraries.getAll()
|
||||
.every(library => !library.syncable
|
||||
|| library.lastSync.getTime() > Date.now() - 1000 * sevenDays)) {
|
||||
|| library.lastSync?.getTime() > Date.now() - 1000 * sevenDays)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue