Refresh EditPlan when the modal pops up
This commit is contained in:
parent
65e25c1a61
commit
2abb6bc1c9
|
@ -41,7 +41,7 @@ export default function EditPlan({
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
refresh();
|
refresh();
|
||||||
}, [plan]);
|
}, [plan, show]);
|
||||||
|
|
||||||
const save = async () => {
|
const save = async () => {
|
||||||
if (!days || !workouts) return;
|
if (!days || !workouts) return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user