diff --git a/lib/services/collections_service.dart b/lib/services/collections_service.dart index ca07771576af7d2f2ca38219e4aa558c8411e28d..5be3ef4875241f4edb0448e7a448c7dec2b26592 100644 --- a/lib/services/collections_service.dart +++ b/lib/services/collections_service.dart @@ -101,7 +101,10 @@ class CollectionsService { // Might not have synced the collection fully final fetchedCollections = await _fetchCollections(lastCollectionUpdationTime); - watch.log("remote fetch"); + watch.log("remote fetch collections ${fetchedCollections.length}"); + if (fetchedCollections.isEmpty) { + return; + } final updatedCollections = []; int maxUpdationTime = lastCollectionUpdationTime; final ownerID = _config.getUserID();