Fix Zotero.Sync.Data.Local._libraryHasUnsyncedFiles()

Always returned true
This commit is contained in:
Dan Stillman 2017-02-24 02:21:29 -05:00
parent f7074a75b5
commit b21729edd1

View file

@ -249,7 +249,7 @@ Zotero.Sync.Data.Local = {
_libraryHasUnsyncedFiles: Zotero.Promise.coroutine(function* (libraryID) {
yield Zotero.Sync.Storage.Local.checkForUpdatedFiles(libraryID);
return !!(yield Zotero.Sync.Storage.Local.getFilesToUpload(libraryID));
return !!(yield Zotero.Sync.Storage.Local.getFilesToUpload(libraryID)).length;
}),