Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
remove workoutsOfMesocycle to avoid zod invalid error
  • Loading branch information
WhyAsh5114 committed Aug 31, 2024
1 parent 392c6ee commit 5a2a7b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
...mesocycleData
} = mesocycle;
const { id, userId, exerciseSplitId, ...mesocycleDataWithoutIds } = mesocycleData;
const { id, userId, exerciseSplitId, workoutsOfMesocycle, ...mesocycleDataWithoutIds } =
mesocycleData;
const mesocycleWithoutIds: FullMesocycleWithoutIds = {
...mesocycleDataWithoutIds,
mesocycleCyclicSetChanges: mesocycleCyclicSetChanges.map((setChange) => {
Expand Down

0 comments on commit 5a2a7b6

Please sign in to comment.