Closed GideonNeedleman closed 7 months ago
I'm able to update workoutData, but the problem is that this doesn't update programData and it's programData that's used to populate the DoWorkout accordion.
I need to redo the DoWorkout to find workout from id, and not store complete workout inside program. Only id.
Just noticed workout.exercises has problem. exercise.id is used as order and exerciseIndex is used like id.
Need to fix this. Ugh.
It's possible that exercise.order is never actually used. Since just mapping over the exercise array will keep order.