GideonNeedleman / 5x5

0 stars 0 forks source link

Edit Workouts #116

Closed GideonNeedleman closed 7 months ago

GideonNeedleman commented 7 months ago

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.

GideonNeedleman commented 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.