diff --git a/Frameworks/Account/CloudKit/CloudKitArticlesZoneDelegate.swift b/Frameworks/Account/CloudKit/CloudKitArticlesZoneDelegate.swift index bb9330764..472f4480d 100644 --- a/Frameworks/Account/CloudKit/CloudKitArticlesZoneDelegate.swift +++ b/Frameworks/Account/CloudKit/CloudKitArticlesZoneDelegate.swift @@ -67,6 +67,11 @@ private extension CloudKitArticlesZoneDelegate { let receivedArticleIDs = Set(receivedRecordIDs.map({ stripPrefix($0.externalID) })) let deletableArticleIDs = receivedArticleIDs.subtracting(pendingStarredStatusArticleIDs) + guard !deletableArticleIDs.isEmpty else { + completion() + return + } + database.deleteSelectedForProcessing(Array(deletableArticleIDs)) { _ in self.account?.delete(articleIDs: deletableArticleIDs) { _ in completion()