Sfoglia il codice sorgente

Merge pull request #383 from nightscout/fix-remote-service-uploads

Fix Remote Service Uploads
Mike Plante 1 anno fa
parent
commit
03f2049d88
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Model/CoreDataStack.swift

+ 1 - 1
Model/CoreDataStack.swift

@@ -104,7 +104,7 @@ class CoreDataStack: ObservableObject {
         let taskContext = persistentContainer.newBackgroundContext()
 
         /// ensure that the background contexts stay in sync with the main context
-        taskContext.automaticallyMergesChangesFromParent = false
+        taskContext.automaticallyMergesChangesFromParent = true
         taskContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
         taskContext.undoManager = nil
         return taskContext