Refresh EditPlan when the modal pops up

This commit is contained in:
Brandon Presley 2022-07-07 17:18:02 +12:00
parent 65e25c1a61
commit 2abb6bc1c9
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export default function EditPlan({
useEffect(() => {
refresh();
}, [plan]);
}, [plan, show]);
const save = async () => {
if (!days || !workouts) return;