From 2abb6bc1c9710293a8d1fe65e821e4922130f2aa Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Thu, 7 Jul 2022 17:18:02 +1200 Subject: [PATCH] Refresh EditPlan when the modal pops up --- EditPlan.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EditPlan.tsx b/EditPlan.tsx index 3152d37..75fef0c 100644 --- a/EditPlan.tsx +++ b/EditPlan.tsx @@ -41,7 +41,7 @@ export default function EditPlan({ useEffect(() => { refresh(); - }, [plan]); + }, [plan, show]); const save = async () => { if (!days || !workouts) return;