From 6810b84310499f7caf01d853ba408801716d8f65 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Fri, 10 Nov 2023 17:09:27 +1300 Subject: [PATCH] Fix updating a plan --- lib/edit_plan.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/edit_plan.dart b/lib/edit_plan.dart index 34dcfe5..0273f1c 100644 --- a/lib/edit_plan.dart +++ b/lib/edit_plan.dart @@ -92,7 +92,7 @@ class _EditPlanPageState extends State { return; } if (plan.id.present) - await db.update(db.plans).write(plan); + await db.update(db.plans).replace(plan); else await db.into(db.plans).insert(plan); if (!mounted) return;