Bläddra i källkod

fix for bolus recommendation not updating

polscm32 2 år sedan
förälder
incheckning
2190f1a2da
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      FreeAPS/Sources/Modules/Bolus/BolusStateModel.swift

+ 1 - 1
FreeAPS/Sources/Modules/Bolus/BolusStateModel.swift

@@ -97,7 +97,7 @@ extension Bolus {
 
 
         let now = Date.now
         let now = Date.now
 
 
-        let context = CoreDataStack.shared.backgroundContext
+        let context = CoreDataStack.shared.viewContext
 
 
         override func subscribe() {
         override func subscribe() {
             fetchGlucose()
             fetchGlucose()