Don't try to insert if there are no articles.
This commit is contained in:
parent
e83694ceb0
commit
d27b0cb2a0
|
@ -847,7 +847,7 @@ private extension CloudKitAccountDelegate {
|
|||
}
|
||||
|
||||
func insertSyncStatuses(articles: Set<Article>?, statusKey: SyncStatus.Key, flag: Bool) {
|
||||
guard let articles = articles else {
|
||||
guard let articles = articles, !articles.isEmpty else {
|
||||
return
|
||||
}
|
||||
let syncStatuses = articles.map { article in
|
||||
|
|
Loading…
Reference in New Issue